Hello. I am seeing several form entries come through where the user errantly adds a 1 before their phone number. Incidentally, it cuts off the last digit of their phone number. Is there a way to prevent a 1 from ever being used as a first digit in the phone number field?
Hi Jeremy. You could use the gform_field_validation filter to ensure that the phone number never begins with a 1 and return an error if it does. Example #6 here shows using the gform_field_validation filter on a phone number field:
Your validation rule will be much simpler than the regex listed there (that is for UK phone validation.)