To edit a field, click on the field or edit next to the field.
Element settings
Here you can set the title of the field. Make sure your key is always unique throughout the form.
You can also set the number of allowed answers for this question.
Element description
In this section you can insert the description (which appears below the field). You can also add a Help icon by entering the help title and help text.
Via the “More” section you can expand a text when the visitor clicks on the “More: title”.
Form view
Here you can determine:
How your title, description and help are displayed.
Whether there should be a prefix and suffix
What is the minimum and maximum length of the answer
Whether there should be a placeholder and what this text is. A placeholder disappears as soon as the visitor starts typing in that field
Whether the Autocomplete for the browser should be enabled or not. With “Autofill” you can determine which information the browser should enter in this field.
Validation
Enter here:
Whether or not the field should be required
Whether or not the field should be unique (a unique field can appear only once in all entries)
Whether the field should be filled in according to a certain pattern or not.
To enter a pattern, you must use a regular expression for a text field.
Text box > General > Form validation > Pattern > Regular expression pattern
Some commonly used regular expressions:
National register number structure:
^[0-9]{2}[.\- ]{0,1}[0-9]{2}[.\- ]{0,1}[0-9]{2}[.\- ]{0,1}[0-9]{3}[.\- ]{0,1}[0-9]{2}$National register number structure only with hyphens:
^[0-9]{2}[-][0-9]{2}[-][0-9]{2}[-][0-9]{3}[-][0-9]{2}$Structure IBAN number: (?
https://www.drupal.org/docs/7/modules/regex-field-validation/regular-expression-samples
These do not check the correctness, but do check the structure.
- For each option you can also set the error message that is displayed to the visitor.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article
