Caldera Forms Error Not Showing
-
Hello,
I am trying to create a custom processor for Caldera forms. I want to add a validation error message when someone tries to submit the button. But whatever I am trying its showing the form is successfully submitted. The validation part is not working at all.
Here is the code what I have tried
add_action( 'caldera_forms_get_form_processors', 'wpcfmu_register_processor' ); function wpcfmu_register_processor() { $processors['wp_cf_mu_integration'] = array( "name" => __('Custom Integration'), "description" => __("Custom Plugin"), "author" => 'test', "pre_processor" => 'wpcfmu_pre_process', ); return $processors; } function wpcfmu_pre_process($config, $form, $process_id) { $error = 'something happened wrong here'; return array( error =>$error, type' => 'error' ); }Can someone tell me what is the wrong here?
The topic ‘Caldera Forms Error Not Showing’ is closed to new replies.