Skip to main content
Version: Divi 5

Form Field Module

Purpose and when to use

The Form Field module is a child module of the Form module in the Divi 5 Visual Builder. Each Form Field represents one form control: you choose a single field type (e.g. input, email, textarea, select, checkbox, file upload, step) per field via Field Type in the field’s Content options.

Use Form Field when you need to:

  • Add text inputs, emails, URLs, or passwords (single-line)
  • Add multi-line text (textarea), numbers (with optional range slider), or dropdowns (select, optional Select2, multi-select)
  • Add checkboxes or radio buttons (with optional images)
  • Add file or image uploads, date/time pickers, hidden fields, signature pads, or calculable fields
  • Add AI output fields, static HTML/editor/code/Divi layout content, or multistep dividers (step)

Add fields from the Form module’s Content tab by using Add New Form Field; then select each field to set its Field Type and type-specific options.

Content tab

The Content tab is organized into groups. Field, Validation, and Layout apply to most field types; other groups appear or matter based on Field Type (field.advanced.fieldType).

Setting groups (Content)

GroupWhat it configures
FieldField Type (input, email, url, password, text, number, select, checkbox, radio, file, image, datepicker, datetimepicker, hidden, signature, calculation, ai_output, html_content, step), Field Title, Admin Title, Field ID, Add Field Prefix.
ValidationRequired mark, required message and position, min/max length, allowed symbols, pattern, email/URL/pattern messages, required sign.
LayoutGrid column, show label, label position and width, placeholder, description text and location, padding.
TextareaRows, character limit, WYSIWYG editor, show media button. (Field type: text)
NumberMin/max number, step, convert to range slider. (Field type: number)
RangeRange type (single/double), min/max/step, prefix/postfix, skin, colors, hide from/to. (When number uses range slider)
SelectOptions, placeholder, Select2, multi-select, search, auto-detect (ACF). (Field type: select)
CheckboxOptions, auto-detect, exclude options, only selected, layout. (Field type: checkbox)
RadioOptions, auto-detect, exclude options. (Field type: radio)
Radio / Checkbox imageShow images, image IDs, label position, max width, same height, margins. (checkbox or radio)
Choice field layoutInline, full width, gap, grid columns, field style (default/button). (checkbox or radio)
UploadMax file count/size, accepted types (file vs image), preview/icon/description, progress bar, colors, alignment. (Field type: file or image)
Date pickerLanguage, date/datetime format, year range, default date, disable weekdays/dates, icon. (Field type: datepicker or datetimepicker)
HiddenHidden value source (e.g. page name, custom, ACF), custom value. (Field type: hidden)
StepPrevious/Next button text, icon, step title, step description. (Field type: step)
HTML contentContent type (text, editor, code, Divi layout), editor/code/layout value. (Field type: html_content)
SignaturePen color, background, clear button, icon. (Field type: signature)
CalculationFormula, decimal places, calculate on server, show result in field/when zero, result content, logic rules. (Field type: calculation)
AIPrompt, trigger (auto/button/form-submit), output to field, persona, temperature, max words, loading/typing options. (Field type: ai_output)
Field mappingMapping type (default, ACF, user, product, etc.), post/user/product/ACF field, custom meta name.
IconUse icon, font icon, color, size; password show/hide icon.
PasswordForgot password link, Remember me, default checked. (Field type: password)
ConditionalEnable conditional logic, relation (and/or), rules.
EntriesView in entries, table header, single checkbox value.
AdvancedGoogle address autocomplete, go next step on change, enable autocomplete.

Content settings table (main groups)

Field

SettingTypeDefaultNotes
Field Typeselectinputinput, email, url, password, text, number, select, checkbox, radio, file, image, datepicker, datetimepicker, hidden, signature, calculation, ai_output, html_content, step.
Field Titletext(empty)Label shown to the user.
Admin Titletext(empty)Label in builder only.
Field IDtext(empty)Unique ID; used for name/id when prefix is added.
Add Field PrefixtoggleonPrefix field name with form prefix (e.g. de_fb_).

Validation

SettingTypeDefaultNotes
Required MarktoggleonShow required indicator.
Required MessagetextThis field is required.Shown when empty and required.
Required Message PositionselectbottomWhere the message appears.
Min Lengthnumber0Minimum character length (0 = no min).
Max Lengthnumber0Maximum character length (0 = no max).
Min Length MessagetextYour input is too short.Validation message.
Email MessagetextPlease input correct email address.For email field type.
Pattern MessagetextInvalid Format.For custom pattern.
Allowed Symbolsselectallletters, numbers, alphanumeric, all.
Required Signtext*Character used as required mark.

Layout

SettingTypeDefaultNotes
Field Grid Columnselectet_pb_column_4_4Column width (full, 3/4, 2/3, 1/2, 1/3, 1/4).
Show Field LabeltoggleoffShow label.
Field Label Positionselectnonenone, top, left, etc.
Field Label Widthselectet_pb_column_1_4Width of label column.
Enable PlaceholdertoggleonUse placeholder.
Field Placeholdertext(empty)Placeholder text.
Description TexttoggleoffShow description.
Description TexttextHere is your field descriptionDescription content.
Description Text Locationselectaboveabove, below.

Textarea (field type: text)

SettingTypeDefaultNotes
Textarea Rowsnumber8Number of rows.
Textarea Limittext(empty)Max characters (optional).
Use WYSIWYG EditortoggleoffRich text editor.
Show Media ButtontoggleonAdd media button in editor.

Number (field type: number)

SettingTypeDefaultNotes
Min Numbernumber0Minimum value.
Max Numbernumber(empty)Maximum value.
Number Increase SteptextanyStep (e.g. 1, 0.1).
Convert Range SlidertoggleoffShow as range slider.

Select (field type: select)

SettingTypeDefaultNotes
Select Optionsoptions(empty)Label/value pairs.
Select Placeholder Texttext-- Select Option --Placeholder.
Select2toggleoffUse Select2 dropdown.
Select MultitoggleoffAllow multiple selection.
Select SearchtoggleoffSearch within options.
Select Auto DetecttoggleoffPopulate from ACF etc.

Checkbox (field type: checkbox)

SettingTypeDefaultNotes
Checkbox Optionsoptions(empty)Label/value/checked.
Checkbox Auto DetecttoggleoffPopulate from ACF etc.
Checkbox Only SelectedtoggleoffSubmit only checked values.

Radio (field type: radio)

SettingTypeDefaultNotes
Radio Optionsoptions(empty)Label/value/checked.
Radio Auto DetecttoggleoffPopulate from ACF etc.

Upload (field type: file or image)

SettingTypeDefaultNotes
Max Upload File Countsnumber5Max files.
Max Upload File Sizenumber10Max size in MB.
Accepted File Types (File)textpdf|csv|docxFor file type.
Accepted File Types (Image)textgif|jpg|jpeg|pngFor image type.
Upload DescriptiontextDrop files here or Click to select file.Dropzone text.

Date picker (field type: datepicker / datetimepicker)

SettingTypeDefaultNotes
Date Formattextyy-mm-ddPHP date format.
Date/Time Formattexthh:mm ttTime format for datetime.
Date Year Start / Endtext1950 / 2050Year range.
Date Default DateselectnoneDefault date.
Show Time OnlytoggleoffTime only (datetimepicker).

Hidden (field type: hidden)

SettingTypeDefaultNotes
Hidden Valueselectpage_namepage_name, custom, ACF, etc.
Hidden Value Customtext(empty)When source is custom.

Step (field type: step)

SettingTypeDefaultNotes
Step Prev TexttextPrevPrevious button.
Step Next TexttextNextNext button.
Step Titletext(empty)Step title.
Step Descriptiontext(empty)Step description.

HTML content (field type: html_content)

SettingTypeDefaultNotes
HTML Content Typeselecttexttext, editor, code, divi_layout.
HTML Content Editoreditor(empty)WYSIWYG content.
HTML Content Codetextarea(empty)Raw HTML/code.
HTML Content Divi Layouttext(empty)Divi layout.

Signature (field type: signature)

SettingTypeDefaultNotes
Signature Pen Colorcolor#000000Stroke color.
Signature Backgroundcolor#efefefCanvas background.
Signature CleartoggleonShow clear button.

Calculation (field type: calculation)

SettingTypeDefaultNotes
Calculation Formulatext(empty)Formula (e.g. field refs).
Calculation Decimalnumber2Decimal places.
Calculate On ServertoggleoffServer-side calculation.
Show Result In FieldtoggleoffDisplay result in field.
Result Contenttext%%result%%Wrapper for result.

AI (field type: ai_output)

SettingTypeDefaultNotes
AI Prompttext(empty)Prompt for AI.
AI API Call Triggerselectautoauto, button, form-submit.
AI Output To FieldtoggleoffSend output to another field.
AI Output Fieldselect(empty)Target field.
AI Personaselecthelpful_expertPersona preset.
AI Temperaturenumber0.5Model temperature.
AI Max Response Wordnumber100Max words.

Design tab

The Form Field module uses the standard Divi 5 Design tab for the field container and for designable parts (e.g. label, input, placeholder, error notice, upload description, radio/checkbox buttons, signature, calculation result, AI preload animation). Design groups in module.json include Label Text, Field Input, Placeholder Text, Field Description, Required Mark, Error Notice, Upload-related elements, Radio/Checkbox buttons and images, Signature, Calculation content, AI trigger button and content typography. Configure these in the Visual Builder under the field’s Design tab after selecting the field.

Field types (quick reference)

Field TypeRenders as
input, email, url, passwordSingle-line input (dfb_render_input_field)
textTextarea (dfb_render_textarea_field)
numberNumber input, optional range slider (dfb_render_number_field)
selectDropdown, optional Select2, multi (dfb_render_select_field)
checkboxCheckboxes, optional images (dfb_render_checkbox_field)
radioRadio buttons, optional images (dfb_render_radio_field)
file, imageFile/image upload (dfb_render_file_upload_field)
datepickerDate picker (dfb_render_datepicker_field)
datetimepickerDate and time (dfb_render_datetimepicker_field)
hiddenHidden input (dfb_render_hidden_field)
signatureSignature pad (dfb_render_signature_field)
calculationCalculable field (dfb_render_calculation_field)
ai_outputAI response field (dfb_render_ai_output_field)
html_contentStatic HTML/editor/code/Divi layout (dfb_render_html_content_field)
stepMultistep divider (dfb_render_step_field)

Add and verify a Form Field quickly

  1. Select your Form module and add a Form Field child.
  2. Set Field Type, Field Title, and a unique Field ID.
  3. Configure required validation or mapping settings.
  4. Save and submit a frontend test entry.
  5. Confirm the field value appears where expected (notification, entry data, mapped target).

Common mistakes

  • Reusing the same Field ID in multiple fields
  • Picking the wrong Field Mapping Type for the selected form type
  • Enabling advanced options (AI, calculation, upload) without end-to-end testing
  • Styling in the builder without validating real frontend behavior

What's Next