Skip to content

Cleaning answers

Get tidy data without asking people to retype anything. Formerie can trim, tidy, and standardize each answer before it’s checked and stored.

The builder already trims spaces on common text fields and lowercases email addresses. To go further, open a form, then Processing, and choose a field. It works on text-like fields: short and long text, email, phone, URL, date, and dropdown.

Each field gets two ordered lists. Cleanup runs first, then transformations, each in the order you set. Validation then checks the result, and that’s the value stored and delivered.

Cleanup stepWhat it does
Trim spacesRemoves spaces at the start and end
Collapse repeated spacesTurns any run of spaces and line breaks into one space
Standardize line breaksMakes every line break the same
Remove tagsRemoves anything written like an HTML tag
Remove linksRemoves web addresses that start with http://, https://, or www.
Remove emojiRemoves emoji
Keep digits onlyKeeps only the digits, on text and phone fields
TransformationWhat it does
Uppercase, LowercaseChanges the case of the whole answer
Replace valuesSwaps one whole answer for another, such as QC for Québec. The answer must match exactly, and other answers stay as they are

To try your steps, type a sample answer under Preview. It runs your unsaved steps on Formerie’s servers, with the same code as your live form, and stores nothing.

A field whose steps were set through the API shows them here. You can preview them, and saving the form keeps them as they are.