Resources/Get more here/Forms & Form Data

How Do I Change a Form Field to Make It Require a Certain Number of Digits?

David Kavalsky
posted this on May 25, 2011 15:55

 

A validation pattern is used to make sure a form field, such as phone number, is entered in a particular format. Validation patterns are built from "regular expressions," which are available on the web (not code that is specific to ion interactive or LiveBall).

 

LiveBall is preloaded with US & International validation patterns. The validation pattern is 'associated' to the data field under Integration > Data Collection > Data Fields. If you click into your 'Phone' field, you'll be able to select a validation pattern from the 'validation' drop-down menu. You can add new validation patterns to LiveBall, as well, by clicking on the "+validation" button on the Integration screen.


Here are a few resources to learn more about how regular expressions are used to create validation patterns: