1/*functions.php
2 * Return a specific URL on form submit.
3 *
4 * @link https://wpforms.com/developers/how-to-customize-the-form-action/
5 *
6*/
7function wpf_custom_form_action( $action, $form_data ) {
8
9 if ( $form_data['id'] == '25' ) {
10 return 'https://www.somesite.com';
11 }
12
13 return $action;
14}
15add_filter( 'wpforms_frontend_form_action', 'wpf_custom_form_action', 10, 2 );