How to Add Validation to a Text Response Question

Sarah Paterson -

Adding Validation to a Text Response question or choice type can be useful if you wish to add restrictions to the response that is given by the user. This could be a word count restriction for long answers or email validation to ensure that a valid email is entered. 

In this Article...

How to Add Validation to a Text Response Question

To add or edit the validation of a text response question:

  1. Within your form, click on the question you wish to add Validation to
  2. Click on +Options
  3. Select the dropdown beside Validation 
  4. Select a Validation Option to apply
    NOTE: If you already have a validation and wish to remove it, select None as your option

Return to Top

Validation Options

Validation Description

None

This is applied by default. There is no validation applied to the field and users can enter any letter, number or character with no limits applied.

Email

Users will be forced to respond to the field in an email format: you@example.com

TIP! Use this validation if you wish to send out automated emails based on the email inserted in this field.

Integers (Positive)

The value entered here must be a whole number greater than 0. 

Integers (Positive & Negative)

The value must be a whole number, however the value can be negative or positive. 

Floating Point

This field can only consist of numbers and decimals.

With this validation you will also be able to add precision to the value entered. For example with a precision of 3 the value can be no longer than 3 decimal points (eg. 0.001)

Letters

The response to this question must only contain letters. Numbers and other characters will not be accepted.

Letters & Numbers

The response to this question must only contain letters & numbers. Other characters will not be accepted.

Date (YYYY/MM/DD)

If you require your users to enter a date, use this validation to ensure that the date is entered in a YYYY/MM/DD format.

Date (DD/MM/YYYY)

If you require your users to enter a date, use this validation to ensure that the date is entered in a DD/MM/YYYY format.

Date (MM/DD/YYYY)

If you require your users to enter a date, use this validation to ensure that the date is entered in a MM/DD/YYYY format.

Phone Number: International (Allow Extension)

This field can only be a valid phone number with extension in "-extension" format.

The number can be any length, can contain spaces, and the characters "+", "( )" and "-" will also be accepted:

A few examples:

  • 1234567890
  • +12345678900
  • (123)4567890
  • 123 456 7890
  • +1(234)567 8900-123

Phone Number: 10 Digit (Allow Extension)

This field must be a 10 digit phone number in ###-###-####-ext format. Where the extension is added as a numerical value to the end of the phone number. 

NOTE: The extension is optional and the response will be accepted as simply ###-###-####

Phone Number: United Kingdom

Response given must be in the format +44 0#########

Post Code (United Kingdom)

Must be in one of the following formats:

  • A1 2BC
  • A12 3BC
  • AB1 2CD
  • AB12 3CD
  • A1B2 3CD
  • AB1C 2DE

NOTE: The space is required and lower case letters will not be accepted.

ZIP/Postal Code (US/Canada)

This field must be a valid Zip code or Postal Code. 

  • 12345
  • A1B 2C3

TIP! Use this validation if you have users from both the US and Canada.

Postal Code (Canada)

This field must be a valid Canadian Postal Code:

  • A1B 2C3

NOTE: The space will automatically be added once the user proceeds to the next question. Lower case letters are also accepted.

Postal Code (Canada - First Three Digits)

The response to this field must be a valid 3-digit postal code:

  • A1B

NOTE: The full postal code will not be accepted.

URL (Web Address)

The response entered in this field must be a valid URL with an HTTP or HTTPS path:

  • https://www.sitename.com
  • http://www.sitename.com

NOTE: sitename.com has been used as an example, however any valid URL domain name will be accepted (eg. sitename.ca, sitename.org, etc).

Domain (Web Address with no path)

The response entered in this field must be a valid URL, but does not need to include an HTTP or HTTPS path. These will still be accepted though within the field.

  • https://www.sitename.com
  • http://www.sitename.com
  • www.sitename.com
  • sitename.com

NOTE: sitename.com has been used as an example however any valid URL domain name will be accepted (eg. sitename.ca, sitename.org, etc).

ZIP Code (US)

This field must be a valid Zip code:

  • 12345

Social Security Number (US)

The value entered in this field must be a valid Social Security Number:

  • 123-45-6789
  • 123456789

Social Insurance Number (Canada)

The value entered in this field must be a valid Social Insurance Number:

  • 123-456-789
  • 123456789

Currency (Dollar)

The value entered in this field must be a numerical amount in dollars with optional cents. 

  • 100
  • 100.50

NOTE: Within this validation a Dollar Sign ($) will be added to the front of the field. Commas (1,000) will not be accepted.

Currency (Euro)

The value entered in this field must be a numerical amount in euros with optional cents. 
  • 100
  • 100.50

NOTE: Within this validation a Euro Symbol (€) will be added to the front of the field. Commas (1,000) will not be accepted.

Percentage (0-100)

The value entered in this field must be a numerical value between 0-100.

With this validation you can also set the precision to determine the number of decimal values accepted. This will be 3 by default. 

NOTE: Within this validation a percentage symbol (%) will be added to the end of the field. 

Percentage (Unbound)

The value entered can be any numerical value greater than 0.

With this validation you can also set the precision to determine the number of decimal values accepted. This will be 3 by default. 

NOTE: Within this validation a percentage symbol (%) will be added to the end of the field. 

Word Limits

Set the minimum and maximum length of words that your user must enter in order to proceed. 

TIP! Use this validation if you are asking your users to write an essay under a specific word limit.

TIP! Within the Current Count field enter custom text to override the default error message "Invalid Entry." Include {min} and {max} in order to pull in the minimum and maximum values into your custom text.

All Characters

Set a character limit on your text response question. This validation will also include any spaces entered.

All Characters (excluding White spaces)

Set a character limit on your text response question. This validation will not include any spaces entered. 

Return to Top

Have more questions? Submit a request

0 Comments

Article is closed for comments.