• Hi,

    Is it possible to have an email field that is NOT required but if one is entered it still has to conform to the regex rules?

    eg. I have a second email field in my database that isn’t required but I want it to be checked to make sure it conforms to the correct format.

    Also, is it possible to show the “date_updated” field in a front end list?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Roland Barker

    (@xnau)

    Yes, this is possible with a custom regex validation. (you set this up in the field definition) I have an article that explains how this works, but you can use a regex like this to do that:

    /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$|^$/

    To show internal fields like “date_updated” you have to use the “fields” attribte to explicitly list all the fields you want shown…for example:

    [pdb_list fields="last_name,city,country,date_updated"]

    Thread Starter anthonyschopf

    (@anthonyschopf)

    Awesome, this worked perfectly!

    Thank you so much for your help. I love how responsive you are to support requests. The Participants plugin is so configurable (which is fantastic) but sometimes it can be challenging to find the correct articles to help.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Email not required’ is closed to new replies.