This feature is available with the Advanced license for Grant Lifecycle Manager (GLM) sites. It is available with the Standard license and above for Scholarship Lifecycle Manager (SLM) sites. Contact Support to enable this feature in your site. Contact the Client Success Team with any questions about your license.
The Regular Expression (Regex) question type allows you to build a question with restrictions on responses. For example, you can require that users enter a response in a specific format or within a certain numeric range.
There are two key components when building a Regex question.
- In order to define the response restrictions, a Validation Expression needs to be entered.
- For example, the following expression would restrict responses to $0-1500 with any amount of 0s in front: ^0*([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|1[0-4][0-9][0-9]|1500)$
- The Validation Error Message allows for text that appears in a red box underneath the question if a user enters something that does not meet the restrictions.
After the Regex question is created, it will appear on the form as a text box.
Validation Expression Resources
If you need assistance with writing a validation expression, reach out to Support.
There are also a variety of resources online if you would like to learn more or want to write your own validation expression. Some resources that others have found helpful are listed below.