Form fields and validation reference

This article describes the field types available when building a form or survey in Flexmail, and the validation filters you can apply to control what answers are accepted.


Field types

Support tip  After setting up a question, click the Preview button to see exactly how it will look and behave for the contact.

Small text field

A single-line text input for short answers, names, codes, single words or brief phrases. You can set a maximum character limit, and the contact sees a character counter as they type. Best for: name fields, company names, short answers, codes or reference numbers

Example of a small text field with a character limit of 50

Large text field

A multi-line text area for longer answers. You can set the number of visible lines and a maximum character limit. Best for: comments, feedback, descriptions, or any open-ended question where the contact needs space to write.

Example of large text field with 5 lines and character limit of 500

A multiple choice question where the contact selects one answer from a dropdown menu. You define all the available options. Best for: categories, regions, product types, or any question with a fixed set of possible answers.

Example of a drop-down field with 3 options

Radio buttons

A multiple choice question where all options are visible at once and the contact selects one. Best for: short lists where you want all options visible, Yes/No questions, satisfaction levels, preference choices

Example of radio buttons with 3 options in vertical and horizontal configuration

Check boxes

Allows the contact to select multiple answers from a list. Best for: topics of interest, features they use,

multiple-selection questions.

Example of check boxes with 3 options in vertical and horizontal configuration

Date

Presents a date picker for the contact to select a date. The value is stored in a date-type database field. Best for: date of birth, event attendance dates, appointment preferences 

Date field with visible calendar picker

Time

The contact can enter a specific time. A table with hours and minutes will appear when the field is clicked on.

Time field with visible time picker

Date and time

The contact can enter a specific date and time. A calendar and a table with hours and minutes will appear when the fields are clicked on.

Date and time field without visible pickers

Disclaimer

A disclaimer field, which you can provide with a link and an accompanying checking box. Agreeing to the disclaimer may be optional or mandatory. 

Example disclaimer field with text 'I agree to terms and conditions'

Upload Files

An extra-paid field type, which enables your contacts to upload files. You can choose the possible file extensions.

Example file upload field displaying a selection of allowed file extensions

Editor field

Not a question field, an HTML Editor text block you can insert between questions. Use it to add explanatory text, section headings, images, or other formatting elements between your questions to give the form better structure and context.

Support tip  Match your form field type to the corresponding database field type when linking them. A date field in the form should link to a date-type database field; a text field should link to a free text or multiple choice database field. Mismatched types will cause data to not save correctly.


Validation filters

Validation filters let you enforce a specific format on text field answers in your forms and surveys. When a contact submits an answer that doesn't match the required format, they see an error message asking them to correct it. This keeps your data clean and consistent.

Where validation filters apply

Validation filters can be applied to small text field types in forms. In surveys, they work on small text fields and multiple choice fields with a text input option. For surveys, the field must be marked as required before you can add a validation filter.

Available filters

  • Alphanumeric: only letters and numbers, no special characters
  • Email: must contain an @ symbol and a valid domain format
  • Numeric: numbers only
  • Http://: must start with http:// (for website URL fields)
  • VAT Number: checks for a valid VAT number format
  • DD-MM-YY: date format with two-digit year
  • DD-MM-YYYY: date format with four-digit year
  • DD/MM/YY: date format with slashes and two-digit year
  • DD/MM/YYYY: date format with slashes and four-digit year
  • YYYY-MM-DD: ISO date format
  • YYYY/MM/DD: ISO date format with slashes

Custom validation with regular expressions

If none of the standard filters match your needs, you can write a custom validation rule using a regular expression (regex). This is a text pattern that the answer must match. Regular expressions are powerful but technical, this option is recommended only if you're comfortable with regex syntax.

Attention  Custom regex validation is not recommended for beginners. An incorrectly written regex can block all valid answers or accept invalid ones. Test thoroughly before using in a live form.


Pro tips

  • Use the Email validation filter on any field where you're collecting email addresses outside of your opt-in form. This prevents typos and formatting errors before they enter your database.
  • Use the Preview button after setting up each field to check how it looks and behaves before saving.
  • For date fields in forms, use the Date field type rather than a text field with a date validation filter. The date picker gives a better experience and guarantees consistent formatting.

Next steps


What else is there to know about Flexmail?
How to do that exactly in my account?
Need some inspiration?
Did this answer your question? Thanks for your feedback There was a problem submitting your feedback. Please try again later.

Didn't find what you were looking for? Contact Us Contact Us