I’ve been trying (unsuccessfully) to validate a 10-digit phone number format (xxx-xxx-xxxx). Initially I tried using the HTML 5 input[type="tel"] field but it didn’t play well with FormIt when it came to submitting the form (constant errors). Then I tried using a standard input[type="text"] field with regex but I couldn’t get that to work either.
Surely there must a simple way to validate the format.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.