AutoBridge

Set Required, Default, and Validation Rules

Required fields, default values, placeholders, length limits, number ranges, and patterns are set on each form, in the field's Configure Field drawer. The same entity field can be required on an application form and optional on a staff update form. This guide covers each setting, which field types support it, and how it is enforced.


Prerequisites

  • The form exists and the field is on it. See Create a Form.
  • Your role has Configure Form on the form.

Rules belong to the form

These settings apply only to the form you set them on. They do not apply to other forms or to the record add and edit forms staff open from a grid with Add Record and Edit. Entity fields do not have a unique-value setting.


Steps

1

Open the field on the form

In the form builder, click the field. The Configure Field drawer opens.

2

Set the general settings

Under General, set the Label (up to 35 characters) and Placeholder (up to 35 characters) for this form, a Default Value to prefill, and a Field Description. The description shows on the form when Show Field Description is on in Configure Form.

3

Make the field required

Under Rules, turn on Required ("Makes this field mandatory for form submission"). Leave the mode on Always, or choose Based on the condition to require it only in some cases. See Conditional Logic.

4

Set validation limits

Under Validation, fill in the limits offered for the field's type, such as Minimum Length and Maximum Length for text, or Minimum Value and Maximum Value for numbers. For text, you can also enter a Pattern (Regex) and an Example of a valid value.

5

Click Update

Click Update to save the field's settings, or Cancel to discard them.


Which settings each field type supports

Field typePlaceholderDefault ValueValidation
Text, TextareaYesYesMinimum Length, Maximum Length, Pattern (Regex) with Example
EmailYesYesMinimum Length, Maximum Length (the email format is checked automatically)
UrlYesYesNone
NumberYesYesMinimum Value, Maximum Value
PhoneYesYesNone
Dropdown, Radio, CheckboxDropdown onlyYesNone
BooleanNoYesNone
DateYesYesNone
Richtext, Json, LocationYesYesNone
Time, Time Range, Date Range, UserYesNoNone
SignatureYesNoNone
FileNoNoThe file restrictions set on the entity apply
ApoNoNoAddress Required, Parcel Required, Owner Required instead of Required
AssociationSee belowNoNone

Every field type that can be placed on a form supports Required, except Apo fields, which have the three separate switches above.

New text fields start with a Maximum Length of 255 characters and new Textarea fields with 1,000. Maximum Length must be greater than or equal to Minimum Length, and Maximum Value greater than or equal to Minimum Value.


How the rules are enforced

RuleWhen it is checkedMessage people see
RequiredWhen the step or form is submitted, in the browser and again by the serverThe field label followed by is required
Minimum Length / Maximum LengthWhen the step or form is submitted, in the browser and again by the serverThe allowed number of characters
Minimum Value / Maximum ValueWhen the step or form is submitted, in the browser and again by the serverThe allowed range
Pattern (Regex)In the browser, before the step or form can be submittedA pattern error, with your Example as a hint

Association fields

When the field links to another entity, the drawer has extra settings:

SettingWhat it does
Layout TypeShows linked records as Pills or Cards
FieldsWhich fields of the linked record are shown
Allow Creation Of RecordLets people create a new linked record from the form
Record FilterLimits which records can be picked on this form
Auto-fill with Logged-in Contact, Auto-fill with Logged-in User, Allow User ChangeFor links to contacts: prefill the person submitting the form, and choose whether they may change it

Example

Settings on a Contractor License Application form.

FieldSettings
License NumberRequired Always. Pattern (Regex): ^[A-Z]{2}[0-9]{6}$. Example: AB123456
Business NameRequired Always. Maximum Length 100
Years in BusinessMinimum Value 0, Maximum Value 100
License TypeDefault Value: General Contractor
Business PhonePlaceholder: (555) 555-0100
Insurance CertificateRequired Always

Common mistakes

  • Expecting a required rule to apply everywhere. It applies to this form only. Set it on every form that needs it.
  • Testing a pattern only in your head. Try the form with valid and invalid values. A pattern with a typo rejects every entry.
  • Leaving Example empty. Without an example, applicants do not know what format is expected.
  • Requiring a field that is hidden by a condition. If a field is hidden, applicants cannot fill it in. Make it required Based on the condition that also shows it.
  • Looking for a unique setting. It does not exist. Use a pattern or a review step to catch duplicates.

Related guides