Applying Client-side Validation
Apply Client-Side Validation to any Free Text question. This lets you enforce a specific Regular Expression (RegEx) pattern on any response given to that question. Because this validation occurs on the user's own machine, it does not rely on a server postback each time the user attempts to submit a potentially invalid response.
Implementation:
- Switch to the Definition tab.
- Select a Free Text question.
- Right-click the selected question.
- Click Attributes.
- Add three Parameter attributes to the question, using the following details:
Parameter Name (Key) | Parameter Value |
ClientSideValidation | 1 |
Message | [Enter the text you want to display] |
RegexPattern | [Enter the RegEx you want to use] |
- Click OK.