How to check answers with validation rules
Ask for a valid email, link or number, limit the length of an answer, and set how many options people can pick.
On this page
Validation checks an answer before the form is sent. Use it to make sure an email address looks like one, or to keep answers within a length you can read.
Validation settings are in each question's Field settings, under Validation. Which options you see depends on the question type.
Open the validation settings
- Click the gear button on the question (Field settings). On a phone, tap the handle next to the question and choose Field settings.
- Find the Validation heading.
Every change is saved straight away. There is no Save button.
Ask for an email, link or number
For a short answer, set Format:
| Format | Accepts |
|---|---|
| None | Any text |
An email address, such as jane@example.com | |
| URL | A link that starts with http:// or https:// |
| Number | A whole or decimal number, such as 42, -3, 7.5 or 7,5 |
A Number answer must be a plain number. A comma counts as a decimal mark, like a point, so 1,000 is accepted as a number with a decimal part. Currency signs, units, spaces inside the number and a second separator are refused, so "1,000.50" and "£20" are. To get amounts without doubt, ask for digits only in the question text, such as "Amount in pounds, digits only".
On phones, respondents get a keyboard that suits the format: one with @ for Email and one for web addresses for URL. A Number answer uses the normal keyboard, because a number pad on some phones has no minus sign and could not type -3. Respondents switch to its numbers row.
Long answers have no format setting.
Limit the length of an answer
- Short answer: set Min length, Max length or both, from 0 to 1,000 characters.
- Long answer: set Max length, from 0 to 20,000 characters. There is no minimum.
Leave a box empty for No limit. Even without a limit, a short answer holds at most 1,000 characters and a long answer at most 20,000.
The boxes take whole numbers only. If Max length is smaller than Min length, Notie shows Max must be at least min. Not saved. and keeps the previous values until you fix it. A number above the highest allowed value, or one that isn't a whole number, is not saved either: Notie shows Use a whole number from 0 to …. Not saved. with that box's highest value, and keeps the previous value.
Set how many options people can pick
For a multiple choice question, set Min selections, Max selections or both, from 0 to 100. For example, set Max selections to 3 for "Choose up to three".
These boxes appear only when Allow multiple is on. A single choice question always takes one answer.
Respondents see the limits under the question before they pick, for example Pick up to 3.
What respondents see
Answers are checked when someone presses the submit button. If an answer does not pass, the form is not sent, the cursor moves to the first problem and a message explains what to fix:
| Problem | Message |
|---|---|
| Too short | Use at least 10 characters. |
| Too long | Use at most 500 characters. |
| Not an email address | Enter a valid email address. |
| Not a link | Enter a valid link starting with http:// or https://. |
| Not a number | Enter a number. |
| Too few or too many picks | Choose at least 2. / Choose at most 3. |
The numbers in the messages come from your settings. Once a message shows, it goes away when the respondent fixes the answer and moves on to the next question.
Spaces at the start and end of an answer are ignored before it is checked.
Optional questions with limits
Limits apply only to answers that are given. If a question is not required, leaving it empty is fine even with a Min length or Min selections. To insist on an answer, turn on Required as well.
Templates for this
Preview a ready-made starting point, then make it yours.
Try it in Notie
Start from the Contact form template and change anything you like. Free forever, no credit card required.
Start with the Contact form templateWas this helpful?
Related articles
- How to make a question requiredRequire an answer to a question, always or only when an earlier answer calls for it, and see what respondents are shown.
- Which question types and blocks can a form have?Every block you can add to a Notie form or page, from short answer and multiple choice questions to sections, images and private notes, each with a guide.
- How to add answer options to a choice questionAdd, reorder and remove the options of a choice question, allow more than one answer, and label options 1, 2, 3 or A, B, C.
From the blog
Still stuck?
Email us and a person will reply. Every message is read.
Email supportHave an account? Send a message from the app.