• Resolved Amid

    (@aminteractiondesign)


    I have a website where an older form is implemented.
    So it seems Ninja foms works in deprecated mode?

    Ninja Forms Version: 3.2.14
    Ninja Forms Codebase: v2.9.x DEPRECATED
    WP Version: 4.9.4

    Nevertheless I need to validate a zip code field to only allow valid formats (12345 and 12345-6789)
    Can you point me to a hook or anything that makes this possible wiht my “old” form?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Curtis

    (@curtisbrownlee)

    I asked around the office and it seems that Single Line Text fieldsd may have had a setting to apply a custom mask in 2.9.x.

    I don’t have access to the old documentation as the 2.9.x codebase has been deprecated and troubleshooting for it has been sunset.

    When you enable the custom mask, you would be able to use the following format to only allow numbers to be entered:
    99999
    or
    99999-9999

    You can use this documentation (https://ninjaforms.com/docs/conversion/) to upgrade to the 3 codebase. I always recommend that clients who are wary of upgrading to try the update on their development site and to just make a backup of their website just to try it out.

    Please note that we only check these forums about once a week, so if you have any more questions and need assistance, please reach out to us at https://ninjaforms.com/contact/ for faster assistance!

    Thread Starter Amid

    (@aminteractiondesign)

    Hi Curtis,
    i found the field but it seems i can only enter either 99999 or 99999-9999 into that custom mask field.
    I′ll see if updating solves the issue.
    It′s not possible to have both 2.9.x AND 3.x forms in one installation?
    Would be handy to test the new way and eventually keep the old form.

    Thank you!

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