• Resolved matredok

    (@matredok)


    Hello I’m using text field in my registration form with validation number. When user trying to type “0” in this field it shows an error “wrong value”. How to fix it? I know i can use “nember field” but it’s too late. I have too many users…

    Thank you!

    • This topic was modified 1 year, 2 months ago by matredok.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter matredok

    (@matredok)

    if( (!isset($field_name) || empty($field_name)) && $required)

    I think the problem is here in registration_form.php line 516

    empty($field_name) – in this case 0 returns true

    I have changed it to (for now):

    if( (!isset($field_name) || $field_name == '') && $required)
    • This reply was modified 1 year, 1 month ago by matredok.
    Plugin Author Pie Register

    (@pieregister)

    Hi,

    The line of code you added is related to the name field and has nothing to do with the number field. The text field with number validation should function normally without any code changes.

    Please contact us here to further debug the issue.

    Thank You

    Plugin Author Pie Register

    (@pieregister)

    Hi,

    We haven’t heard back from you in a while, so we are going to mark this thread as resolved. You can always raise a new one or continue this one if you need any further assistance.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Validation number shows error’ is closed to new replies.