• Resolved dragonix

    (@dragonix)


    Hi,

    I want to intercept with a hook the error message, in order to to show a warning message that will not block the form validation.

    I have try this kind of code without success

    Link where if find code : https://plugins.trac.www.ads-software.com/browser/forminator/trunk/library/addon/class-addon-form-hooks-abstract.php#L259

    add_filter( 'forminator_custom_on_form_submit_result', 'check_form', 99, 3);
    function check_form(  $is_success,
    	                        $form_id,
    	                        $submitted_data,
    	                        $form_settings_instance ) {
    	
    	if ($form_id == 44) {
    		$is_success = "My error message";
    	
    	}
    	return $is_success;
    }

    Can you please help me in order to know what is the good syntax of this function, and if it’s possible to show a warning message (can be via a JS popup or a simple div)

    Thanks you in advance

    • This topic was modified 1 year ago by dragonix.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update error message or a warning message’ is closed to new replies.