Docs

Form widget & fields

Add a form, choose field types, labels, validation and layout.

On this page

The Form widget builds contact forms, quote requests, booking enquiries and newsletter signups right in the editor. You choose the fields, their labels and layout; Urmi checks every answer on the server, saves the submission, emails you and can pass it on to other services. Spam protection is built in.

The Contact page in the editor with the Form widget selected; the inspector shows the Form fields section with Name, Email and Message
A contact form with three fields.

Add a form

  1. Add the widget

    In the editor, open Insert, search for "form" and drag Form onto the page. It starts with three fields: Name, Email and Message.

  2. Name the form

    In Content → Form fields, set the Form name, for example "Contact form" or "Quote request". It is shown in Submissions and in notification emails.

  3. Change the fields

    Click a field in the Fields list to open its settings, drag the handle to reorder, and use the copy and trash icons to duplicate or delete it. Add item adds a new field.

  4. Choose what happens after sending

    Open Actions after submit to set who gets the email and other actions. See Actions after submit.

  5. Publish the page

    Forms only accept submissions on published pages and templates.

Field types

TypeUse it for
TextShort answers: a name, a company.
EmailAn email address; checked to be a valid address.
PhoneA phone number; checked to be a plausible number.
URLA web address; checked to be a valid address.
NumberA number, with optional Minimum and Maximum.
TextareaLonger messages. Rows sets its height (4 by default).
SelectA dropdown list of Options.
Radio buttonsOne choice among a few Options.
CheckboxesSeveral choices among Options.
Acceptance (consent)A single checkbox such as "I agree to the privacy policy", with Consent text that may contain links.
DateA date picked from the browser's calendar.
HiddenA value sent with every submission without being shown, such as the campaign name (set it in Default value).
File uploadLets visitors attach a file, such as a floor plan or a photo. Needs Allow file uploads in Spam protection.
— Step break —Not a field: starts the next step of a multi-step form.

Answers are limited to 5,000 characters each.

Field settings

The settings of the Email field: Type, Label, Field ID, Placeholder, Required, Default value, Autofill, Help text, Show only if field and Column width
The settings of one field.
Field settings
SettingWhat it does
TypeThe field type (see above).
LabelThe field's name shown to visitors.
Field IDA short name without spaces, such as email or project_type. It is used in email templates as [field_id] and as the key sent to webhooks. Empty: made from the label.
PlaceholderHint text shown inside an empty field.
RequiredThe form cannot be sent without this field.
OptionsFor Select, Radio buttons and Checkboxes: one option per line. Write Label|value to store a different value, for example Full renovation|renovation.
Options side by sideRadio buttons and checkboxes in a row instead of a column.
Consent textFor Acceptance: the text next to the checkbox. Links are allowed. Empty: the label.
Default valueA value filled in when the form loads. For checkboxes, separate several values with commas.
Minimum / MaximumFor Number fields.
RowsHeight of a Textarea (2 to 30).
Allowed file typesFor File upload: extensions separated by commas (pdf,jpg,jpeg,png by default). Only types WordPress accepts are allowed; scripts and SVG never are.
Max file size (MB)For File upload: 1 to 20 MB (2 by default).
AutofillTells browsers what the field is for (Full name, Email, Phone, Company, Street address…), so visitors can fill it in with one tap.
Help textA short explanation under the field.
Show only if fieldMakes the field conditional: type the Field ID of another field, a Condition (is, is not, contains, is filled in, is empty) and a Value. The field stays hidden, and is not required, until the other field matches.
Column width100 %, 75 %, 66 %, 50 %, 33 % or 25 % of the form's width. It can differ per device: switch the device in the inspector.

For example, add a Text field "Company name" with Show only if field client_type is business, next to a Radio buttons field client_type with the options "Private|private" and "Business|business".

Form settings

Form fields
SettingWhat it does
Form nameShown in submissions and notification emails.
Show labelsHide the labels for a compact form. Hidden labels stay available to screen readers.
Required mark (*)Shows an asterisk after the labels of required fields.
Progress / Next button / Back buttonFor multi-step forms. See Multi-step forms.
Submit button
SettingWhat it does
TextThe button label ("Send message" by default).
Icon / Icon positionAn optional icon before or after the text.
StylePrimary, Secondary, Outline or Ghost, from your button styles.
SizeS, M, L or XL.
Column widthWidth of the button's column, like a field.
AlignmentLeft, Center, Right or Full width.
Messages
SettingWhat it does
Success messageShown after a successful submission (unless you redirect visitors).
Error messageShown when the submission could not be sent.
Required field messageShown under empty required fields ("This field is required." by default).

The Design tab styles the gaps between fields, the labels, the fields (colors, border, focus color, radius, padding, checkbox and radio color), the button (normal and hover) and the messages.

What visitors see

The contact form on the live Contact page: Name, Email and Message fields and a Send message button
The contact form on the live site.
  • Each field is checked when the visitor leaves it, and everything is checked again on the server. Invalid fields are highlighted with a message, and the first one gets the focus.
  • After sending, the form is cleared and the Success message appears. With Redirect after success, the visitor is taken to that page a moment later.
  • The form works without JavaScript too: the page reloads and shows the result.