How to access submitted fields in custom action?
-
Hi, I need custom action for which I found some help. However, I need some help in accessing t he fields in the submitted form. For example, I have a field Phone Number(this is the only field in my form). How can I access it in this code?
function wpf_custom_form_action( $action, $form_data) { if ( $form_data[ 'id' ] == '168' ) { return 'facebook.com'; } return $action; } add_filter( 'wpforms_frontend_form_action', 'wpf_custom_form_action', 10, 2 );
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to access submitted fields in custom action?’ is closed to new replies.