{{ form }}

Properties

string object_type
Will always be "form".
true/false is_valid
Indicates whether or not this references a form.
guid guid
The unique identifier for this form
url field redirect_url
text field template_override_guid
text field name
The entity name. This field is primarily intended for internal use by website administrators to identify objects.
text field title
html linked_title
A link to the default page if one exists, or the escaped title if not.
text field folder_guid
folder folder
true/false has_url
text field site_domain_guid
text field ssl_mode
true/false include_in_search
text field url
text field template_guid
template template
url field canonical_url
text field browser_title
textarea field meta_description
textarea field meta_robots
textarea field keywords
string linked_title
If the form does not have a URL, will output the same as the title. If the formIf the form does have a URL, will wrap the title in a link to the URL.
string full_url
The full URL of the page - including the scheme ("http://", "https://" or just "//"), the domain name, and the path.
true/false visited
True if the user has visited the page before in their current session. Note that this will always be false if the user has not allowed session permission (see the Permissions and Personalization documentation).
string value
Synonymn for guid.
html output
The default output that the form would produce if it were output directly to the template.
html output_in_list
The default output that the form would produce if it were output directly to the template from inside a list.
string form_unique_identifier
A helper property containing a unique ID for this instance of this form. Every time this form is output - either from this instance or from multiple instances - it should have a different ID. Specifically, every time the FormEnd property is accessed the unique ID will be reset to a new value (thereby preventing conflicting javascript code and element identifiers).
html form_start
A helper property to assist in creating the form markup. This property includes the form tag with the form_unique_identifier.
html form_end
A helper property to assist in creating the form markup. This property includes the end form tag as well as some javascript that will be used to assist in processing conditional fields, form validation, and form submissions.
string javascript
A helper property to assist in creating the form markup. This property includes all of the javascript that will be output from the form_end property. USE WITH CAUTION.
string javascript_field_config
A helper property to assist in creating the form markup. This property includes the field configurations for the javascript that will be output from the javascript property. USE WITH CAUTION.
string javascript_form_config
A helper property to assist in creating the form markup. This property includes the form configuration for the javascript that will be output from the javascript property. USE WITH CAUTION.
string form_submit_target
A helper property in case you decide to build and submit the form without using the form_start and form-end properties. This property contains the URL that the form must be submitted to in order to be recorded by Marketpath CMS as a form submission.
list fields
A list containing all of the form fields that are direct children of the current form.
Note that any fields (or groups) that are part of a parent group will NOT be included in this list - they will be included as children of their parent group.

Extendable

This object may be extended by defining custom fields in a template, then creating a page for this object using that template and saving it. Once the page has been saved, any custom fields that are assigned to the object for that page may be accessed anywhere that object is accessed using the following syntax:

{{object.field_name}} - shortcut for {{object.field_name.output}}. Recommended for most use cases.
{{object.field_name.output}} - formatted output from the custom field. Exact format depends on the type of the custom field.
{{object.field_name.value}} - will output the non-formatted value.

Some field types have additional properties (eg: {{object.checkboxlist.values}}). Additional details may be found in the custom fields section.

Examples

Recommended:

{{ form }}

Simple sample code sample to display a form with no groups.

{{ form.form_start }} {% for field in form %} //Output the field - see the Form Field documentation for a more specific example of outputting form fields {{ field }} {% endfor %} {{ form.form_end }}

Developer Overview

Liquid Markup