• Greetings,

    My current issue is to have a field in the registration form that would contain a specific set of characters (that are predefined by me, for example PH3f1X) that would permit a user to register.

    On github I found a hint: https://gist.github.com/ultimatemember/78aac8b268b2c75489f0
    But it seems to be outdated, since, after using the code, a blank screen appears. The plugin works but, instead of showing the error message, I am being redirected to a blank page.

    Would You have a solution?

    Thank You!

    Regards,
    Edgars

    • This topic was modified 5 years, 7 months ago by mrbubble.
Viewing 2 replies - 1 through 2 (of 2 total)
  • the error line is outdated from V 1.0 UM

    replace

    $ultimatemember->form->add_error($key, __('Enter a valid 8-number serial please') );


    with:

    
    $ultimatemember->classes[‘form’]->add_error($key,'Enter a valid 8 Number Serial Please');
    Thread Starter mrbubble

    (@mrbubble)

    @darkfreaks thanks for the tip!

    Unfortunately, the issue still persists…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Validation Bug/Issue’ is closed to new replies.