It is pretty straight-forward in Sitecore Forms. You can achieve this using Submit action.
Open Sitecore Forms, in your form, drag-and-drop a submit button from the Form Elements pane (Structure section), if it is not already present.
select the Submit button
On the Form Elements pane, expand the Submit Actions section, click the Add button
Click on ...