Database Fields Custom Validation - e.g. regular expression, IBAN Bank number, phone
While I am pleased with the site overall, it's clear that it does lack some features that I consider essential, although not critical.
One such feature is field validation of database records.
Currently there is very limited field validation.
I would request more robust import and user entry field validation capabilities to keep data clean. Without this capability, the database very quickly starts to contain garbage fields.
For example, currently a user may enter their phone number in any format they choose, including completely invalid phone number entries. The same is true for zip code fields and others.
Evgeny Zaritovskiy commented
I think that we need to have some kind of common validation patterns plus ability to use regular expressions. And admin (in fields management form) can choose if he want the field to be validated and choose a proper validation pattern or defined custom (regular expression). Then the system will just validate the field against the pattern.
In more ideal situation I can think of a special system page (or may just some theme override configuration file?) where admin can control validation patterns himself somehow (e.g. through regular expressions or even providing some js code) and then use them in fields customization. This approach would require advanced skills from administrator.
Dmitry Buterin commented
Thanks for bringing this up Steve.
I would appreciate comments from others, especially specific examples of fields where validation would be beneficial. So far phone numbers and zip codes have been mentioned.
Also, some questions:
1) How to handle validation:
a) post-input (allow any entry, validate and display error)
b) display formatting and enforce valid input only. E.g. .'('&[field_for_three_digits]&')-'&[field_for_3_digits]&'-'&[field_for_4_digits]
2) How to deal when records are imported
3) How to deal with records already in the database
Maurine Killough commented
Yes, I am surprised Wild Apricot has not seen this as a priority. Inconsistent formats on phone numbers and zip codes looks unprofessional.
Anthony S. commented
Another vote for this feature.
Evgeny Zaritovskiy commented
No update, sorry. I probably there will be no update here till the end of the year.
any update on this? It would be nice to have all my phone numbers look the same in the directory rather than having to manually format them in excel from time to time.
An additional suggestion for this it to set it up not just so that the data conforms to a certain format, but also to make sure that the value entered into the field meets certain other conditions.
For example, you may be running a site that requires people belong to a certain email domain to join, like .org or .gov. You could set up a mask field on so that not only do you verify that an email is entered, but that the email ends in either .org or .gov.
Alec Ko commented
Since there is no numeric field define, at least there should be entry field mask. E.g. ###.## for number ****** for 5 characters. *#*#*# for postal code, etc.
Dave F commented
it would be nice to have a phone number field that would correct format numbers instead of having a free form text field resulting in several different formats.
I should like to be able to set a mask on text fields in the member record so that data entered by users in those fields was correctedly formatted.
Uses would include telephone numbers and postal/zip codes where a correct reponse follows a consistant format.