Skip to content
Help
Go to Learnient(opens in a new tab)

How form validation works

When someone fills in a form during a performance review, a one-to-one or another process, Learnient checks their answers at two moments: when they save and when they submit. Most checks wait until they submit. This article covers what each moment checks, who has to answer a required field, how repeating sections are checked, and what people see when something is missing.

People filling in a form have two buttons, Save and close and Submit. They check different things.

CheckSave and closeSubmit
Required fields are answeredNoYes
A repeating section has at least its Minimum rowsNoYes
A Link / URL field holds a valid web addressYesYes
A Currency field holds a valid amountYesYes
A Goal score has a note with itYesYes

Someone can save a half-finished form as often as they like. Nothing about missing answers stops them until they submit.

Choosing Submit saves their answers first. If that save fails, the form is not submitted.

Required applies only to the people who can edit that field at their step of the process. Someone who can only view a required field, or cannot see it at all, can submit without it.

One form can hold required questions for different people. In a review where the employee answers one section and their manager answers another, the employee can submit their part while the manager’s required questions are still blank. The manager has to answer them when they submit.

The exception is a form someone opens from a link without logging in. When they submit, every required field on the form has to be answered.

A field is unanswered when it is empty, holds only spaces, or has nothing chosen. A number 0 is an answer.

Required fields in a repeating section are checked on every row, and the message names the row, such as “Please complete Goal title in Row 2”.

A repeating section with no rows passes the required check, however many required fields it has. If people must add at least one row, fill in Minimum rows in Section settings.

Minimum rows only applies to people who can edit at least one field in that section.

Some repeating sections list a person’s existing goals and also let them add new ones. A field you ask only on new goals is not required on their existing goals, and a field you ask only on existing goals is not required on new ones. You choose this with Ask this on in Field settings.

When someone enters a goal score, they also have to add a note saying what has changed. This is checked when they save as well as when they submit, so Save and close does not work until the note is there.

When someone chooses Submit, missing and invalid answers are highlighted before anything is sent. They see a message such as Fix the highlighted field before submitting, and the form moves to the first problem.

The messages they can see are:

MessageWhat it means
Please complete required fields: fieldA required field they can edit is empty
Please complete field in rowThe same, on one row of a repeating section
Please add at least number row(s) to sectionThe section has fewer rows than Minimum rows
field must be a valid URLA Link / URL field does not hold a web address
field must be a valid amountA Currency field does not hold a number
Add a note to field saying what has changedA goal score was entered without a note

Answers are checked against the form as it is when they submit, not as it was when they started. If you make a field required while people are part-way through, they have to answer it before they can submit.

Decide who has to answer each question through the field’s Permissions. Required on its own does not make anyone answer a field they can only view.

Use Minimum rows when a repeating section must not be left empty. Required fields inside the section do not do that by themselves.

If a form has goal scores, tell the people filling it in that every score needs a note. Otherwise their first attempt to save fails without them knowing why.