Features/Forms

Form widget element

Place a builder form on any page or component with one element bound to the form by its id.

Form Widget is a builder element in the Form category. You drop it on a page and pick a form from the list; the element stores the form id in the attribute dh-form-widget. The widget HTML is generated by the platform from the form config, so the page always shows the current version of the form. It outputs a form.dh-fb element with the config embedded as JSON, steps, a 12 column grid of fields, actions and success/fail blocks.

How it works

  • Output markup: form.dh-fb[dh-form=<id>] > script.dh-fb-config (JSON) > .dh-fb-step > .dh-fb-grid > .dh-fb-field (.dh-fb-label, .dh-fb-input / -textarea / -select-trigger / -radio-group / -checkbox-group / -toggle, .dh-fb-error), .dh-fb-actions (.dh-fb-prev, .dh-fb-next, .dh-fb-submit), .dh-fb-success, .dh-fb-fail. Multi-step forms get data-steps.
  • A hidden honeypot input dh-protection is rendered when the honeypot is on.
  • There is also a Membership Form element (membership-form-widget) that belongs to Memberships.

When to use it

  • Put the same contact form in a footer component and on a contact page
  • Swap the form on a landing page without touching the layout

Limitations

  • Elements inside the widget are not builder nodes; style them with descendant selectors on the widget's class.

Availability

  • Works in Designer, AI Studio and MCP.

How to use it.

  1. In the builder add the Form Widget element (Form category).
  2. In its content panel choose the form.
  3. Give the widget a class and style descendant states such as ' .dh-fb-input'.

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.