Skip to main content

Standard Settings

The builder provides these shared settings where applicable. Individual field pages describe additional settings and exceptions. Twig property names and HTML attributes are listed separately below.

SettingTwig Property / HTML AttributeDescription
Labelfield.labelThe label for the field. This can be changed per form if you wish.
Handlefield.handleHow the field may be called in templates, if necessary. You may also override this value per form if you wish.
Requiredfield.requiredToggle if the field requires a value to submit the form successfully.
Custom Validation ErrorNew in 5.7+Visible when Required is toggled on. If this field is left empty upon submit, show this error message.
Instructionsfield.instructionsSpecify instructions for the field if you wish.
Default Valuefield.defaultValueFor applicable fields, you can set a default value or selected option for the field.
Placeholderfield.placeholderSpecify placeholder text for the field, if applicable.
Browser AutofillNew in 5.17+field.browserAutofill / autocompleteTells browsers what information the field collects so they can offer saved details. Choose a purpose such as Given name, Email address, or Postal code, select On or Off, or leave it at Use browser default.
Maximum Lengthfield.maxLength / maxlengthThe maximum number of characters for the field's value.
Applicable to the following Field types
Attribute EditorApply any kind of attribute on the input, label, error, instruction in Freeform's automated rendering of the form.
Optionsoptions
  • field.label
  • value
Specify the option labels and values for applicable field types.
Applicable to the following Field types

All field types conveniently include the ability to set attributes for their labels, inputs, errors and instructions directly inside the form builder property editor.

  • This allows you to keep your hands clean of being inside formatting templates and specify one-off exceptions for fields such as readonly and autocomplete="off", etc.
  • To use single attributes like novalidate, just enter the attribute in the Attribute column and leave the Value column empty.
  • You can use anything inside the Form and Field objects as well, e.g.:
    • field.id to access Field ID.
    • form.handle to access form handle.