Can't save empty fields
-
I’m using validated fields to save a few values, but while they validate just fine if they have the correct data inserted, they essentially became “required” fields, and return validation errors when empty.
Maybe the issue is my regex? These are the regular expressions I’m using:
^(\([0-9]{2}\))([0-9]{4,5})([0-9]{4})$
^[A-Za-z0-9_]{1,15}$
The first one is so I can validate phone numbers from my country: (99)99999999 or (99)99999999.
The second one is so I can validate Twitter usernames without the @.
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can't save empty fields’ is closed to new replies.