Toggle menu

HTML

This field displays HTML. In most cases the guidance text field is better suited than this one.

Note that in read-only rendering mode (emails, PDFs etc) a table is used to lay out field labels and their values. The guidance text field type is aware of this, so outputs the necessary table elements. The HTML field type, however, will only ever output exactly what it's told.

Basic field value substitution (using # characters) can also be enabled.

Properties

LabelDescriptionType Name
SummaryA short description of what the field does, displayed in the forms designer to help identify itSUMMARY
HTMLThe HTML to be output.

Don't use this field type to inject additional layout HTML, blank lines or extra spacing into your form. The layout and styling should always be left to your site's style sheet
HTML
OutputDetermines when the HTML should be output. By default, the HTML will only be included when the form is displayed on the site.

The following options are available:

Always - the HTML will be displayed on your site and in read-only modes
Form - the HTML will only be output when the form is being rendered on the site (in "standard" mode)
Summary (Email) - the HTML will only be output when the form is rendered in read only mode, without controls, for example in emails
OUTPUT
Expand FieldsWhether to support field name substitution. If set to true the values of any field names between # characters will be inserted before the HTML is renderedEXPANDFIELDS
Default FunctionA JavaScript function you can use to calculate the starting field value. This function is executed server-side when the field HTML is generated. See Common Field Properties for an exampleDEFFUNC
HandlersA JavaScript function that is executed browser-side whenever the page loads or the field value changes. See Common Field Properties for an exampleHANDLERS
Additional Styling ModifierAn optional CSS modifier for the field. See Common Field Properties for an exampleADDITIONALSTYLINGMODIFIER
DocumentationAdd documentation to your field to help explain any complex functionality to future users. You might include information on what the field does and how it relates to other fields on the form. Notes added here are only ever visible in the Forms Designer, they can be searched for, viewed and downloaded from the action panel. See Common Field Properties for an exampleDOCUMENTATION
Last modified on 21 October 2024

Share this page

Facebook icon Twitter icon email icon

Print

print icon