Skip to main content

HTML

A special field type that allows you include HTML and Twig inside your form layout in the form builder. The field.type property value is html (for conditionals).

​Behavior & Limitations

  • The Property Editor will load an HTML area for you to type or paste your code into.
  • The Layout column in the form builder will live parse your HTML (Twig will not be parse inside the form builder).
  • All HTML is allowed here.
  • To enable Twig inside this field, turn on the Allow Twig to be Enabled for each HTML block? setting (and decide if you need to enable to the Render HTML block Twig in isolated mode? setting as well). Then, you will see an Allow Twig checkbox in the property editor column. Check that to allow this HTML block to parse Twig code.

​Examples

​Display Submission Data from Previous Pages

If you'd like to display submission data from previous pages, you can do this by using an HTML block field with Twig code that might look something like this:

<ul>
<li>Name: {{ form.get('firstName').value }} {{ form.get('lastName').value }}</li>
<li>Email: {{ form.get('email').valueAsString }}</li>
<li>Home Phone: {{ form.get('homePhone').value }}</li>
<li>My Radio Field: {{ form.get('myRadioField').value }}</li>
</ul>

​Resources