Validation and Submit Problems
-
I work for a agency, who use ninja forms and must create a plugin. I have this in my actions constructor
add_filter('ninja_forms_submit_data', array( $this, 'validate_minimum_nl_selects' ));
and this in the function
$form_data['errors']['fields'][89] = esc_html__( 'Error', 'myplugin' ); $form_data['errors']['fields'][91] = esc_html__( 'Error', 'myplugin' ); $form_data['formErrorsCorrectErrors'] = esc_html__( 'Form Error', 'myplugin' ); return $form_data;
Problem is, that the error is only shown at field 89. If i comment the line with 89 then the error is shown at field 91. The formErrorsCorrectErrors is never working, but i also want an error at the end of the form. Is it possible to show the errors on each field and change the main error message for the form?
I also have a problem that once a error is shown, i cant submit the form again. Hope somebody can help me, because i dont know where i should ask this question.
- The topic ‘Validation and Submit Problems’ is closed to new replies.