• I’m trying to limit the number of characters the user can enter in certain fields in the signup form. I was thinking that it could be done with a regex, but when I choose ‘regex/match’ as the validation in Manage Database Fields, the field becomes a required field, and I also want to be able to limit the number of characters in optional fields.

    How can I use a regex while keeping the field optional, or is there another way of limiting the number of characters the user is allowed to enter?

    https://www.ads-software.com/plugins/participants-database/

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    You can’t use any kind of built-in validation on a optional field. I know it could be useful, but it doesn’t work that way. Of course, it can be done with custom code.

    The other way of doing this is to place validation javascript on your form. That will also require some custom code…

Viewing 1 replies (of 1 total)
  • The topic ‘Regex in optional field?’ is closed to new replies.