• Hi

    I have used the hook provided by you and all is working fine

    add_action( ‘um_submit_form_errors_hook__registration’, ‘my_submit_form_errors_registration’, 10, 1 );
    function my_submit_form_errors_registration( $args ) {
    if ( count( $args[‘um_shortcode_24_7’]) ==0 ) {
    UM()->classes[‘form’]->add_error(‘um_shortcode_24_7’, __(‘Enter a valid 8-number serial please’) );

    }
    }

    Its working fine but It does not display the message on front end registration form
    http://wallhamn.ddtests06.se/register/
    For shortcode custom field its not displaying error message why??

    • This topic was modified 7 years, 2 months ago by anil.n.
    • This topic was modified 7 years, 2 months ago by anil.n.

The topic ‘custom field(shortcode) validation message’ is closed to new replies.