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:

  1. Switch to the Definition tab.
  2. Select a Free Text question.
  3. Right-click the selected question.
  4. Click Attributes.
  5. 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]
  1. Click OK.