Form
Tags, loops and code examples available for the HTML forms used in Forms for Editors.
Available tags
Form.ColumnShiftFormFieldID
Returns the ID of the form field that is selected to end first column.
@GetInteger("Form.ColumnShiftFormFieldID")
Form.EmailFieldID
Returns the ID of the field that is selected to be used as e-mail field.
@GetInteger("Form.EmailFieldID")
Form.Field.[FieldSystemName].Active
Returns True if the field is active - otherwise False.
@GetBoolean("Form.Field.[FieldSystemName].Active")
Form.Field.[FieldSystemName].Append
Returns appended HTML for the field.
@GetString("Form.Field.[FieldSystemName].Append")
Form.Field.[FieldSystemName].AutoValue
Returns the system name of the field that is selected as automatic value for the field, e.g. AccessUserName if Name is selected as automatic value.
@GetString("Form.Field.[FieldSystemName].AutoValue")
Form.Field.[FieldSystemName].Color
The color tag is used in old Forms module (same database tables and fields) - but is obsolete in Forms for editors.
@GetString("Form.Field.[FieldSystemName].Color")
Form.Field.[FieldSystemName].Control
Returns the code snippet for the form input field.
@GetString("Form.Field.[FieldSystemName].Control")
Form.Field.[FieldSystemName].CssClass
Returns the css class for the form field.
@GetString("Form.Field.[FieldSystemName].CssClass")
Form.Field.[FieldSystemName].DefaultValue
Returns the default value for the field.
@GetString("Form.Field.[FieldSystemName].DefaultValue")
Form.Field.[FieldSystemName].Description
Returns the description of the field.
@GetString("Form.Field.[FieldSystemName].Description")
Form.Field.[FieldSystemName].FormID
Returns ID of the form the field belongs to.
@GetInteger("Form.Field.[FieldSystemName].FormID")
Form.Field.[FieldSystemName].HtmlId
Returns an ID that can be used as ID attribute.
@GetString("Form.Field.[FieldSystemName].HtmlId")
Form.Field.[FieldSystemName].ID
Returns the ID of the field.
@GetInteger("Form.Field.[FieldSystemName].ID")
Form.Field.[FieldSystemName].Image
Returns the path of the Image-property (when using Image-controls in your form)
@GetString("Form.Field.[FieldSystemName].Image")
Form.Field.[FieldSystemName].IsButton
Returns True if the field is a button (Send or Reset) - otherwise False.
@GetBoolean("Form.Field.[FieldSystemName].IsButton")
Form.Field.[FieldSystemName].IsInput
Returns True if the field is an input field - otherwise False.
@GetBoolean("Form.Field.[FieldSystemName].IsInput")
Form.Field.[FieldSystemName].IsList
Returns True if the field is a list - otherwise False.
@GetBoolean("Form.Field.[FieldSystemName].IsList")
Form.Field.[FieldSystemName].IsOther
Returns True if the field is an element (e.g. an image) - otherwise False.
@GetBoolean("Form.Field.[FieldSystemName].IsOther")
Form.Field.[FieldSystemName].IsTextArea
Returns True if the field is a text area - otherwise False.
@GetBoolean("Form.Field.[FieldSystemName].IsTextArea")
Form.Field.[FieldSystemName].MaxLength
Returns the maximum number of characters that the field allows.
@GetInteger("Form.Field.[FieldSystemName].MaxLength")
Form.Field.[FieldSystemName].Name
Returns the name of the field.
@GetString("Form.Field.[FieldSystemName].Name")
Form.Field.[FieldSystemName].Placeholder
Returns the placeholder text for the field. The placeholder is used to specify a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format).
The short hint is displayed in the input field before the user enters a value.
@GetString("Form.Field.[FieldSystemName].Placeholder")
Form.Field.[FieldSystemName].Prepend
Returns prepended HTML for the field.
@GetString("Form.Field.[FieldSystemName].Prepend")
Form.Field.[FieldSystemName].Required
Returns True if the field is required.
@GetBoolean("Form.Field.[FieldSystemName].Required")
Form.Field.[FieldSystemName].Size
Returns the size of the field in pixels (px).
@GetInteger("Form.Field.[FieldSystemName].Size")
Form.Field.[FieldSystemName].Sort
Returns the sort order of the field.
@GetInteger("Form.Field.[FieldSystemName].Sort")
Form.Field.[FieldSystemName].SystemName
Returns the system name of the field.
@GetString("Form.Field.[FieldSystemName].SystemName")
Form.Field.[FieldSystemName].Text
Returns value of the Text-property (when using Body text-controls in your form)
@GetString("Form.Field.[FieldSystemName].Text")
Form.Field.[FieldSystemName].TextAreaHeight
Returns the height (lines) of the field of type text area.
@GetInteger("Form.Field.[FieldSystemName].TextAreaHeight")
Form.Field.[FieldSystemName].Type
Returns the type of the field.
@GetString("Form.Field.[FieldSystemName].Type")
Form.Field.[FieldSystemName].Value
Returns current value of the field.
@GetString("Form.Field.[FieldSystemName].Value")
Form.FormStart
Returns the code snippet for the form start for the form.
@GetString("Form.FormStart")
Form.FormSubmitButtonText
Returns the button text for the submit button.
@GetString("Form.FormSubmitButtonText")
Form.LabelBold
Returns True if the field name is marked to be bold. False otherwise.
@GetBoolean("Form.LabelBold")
Form.LabelOverField
Returns True if the field name is marked to be placed above the field. False otherwise.
@GetBoolean("Form.LabelOverField")
Form.LabelRequired
Returns the path to the selected icon to mark the field as required.
@GetString("Form.LabelRequired")
Form.LastSubmitDate
Returns the date and time for the when the form was submitted last.
@GetDate("Form.LastSubmitDate")
Form.MaxSubmits
Returns the maximum number of allowed submits of the form.
@GetInteger("Form.MaxSubmits")
Form.OnSubmit
Returns the attribute value needed for <form onsubmit="">.
@GetString("Form.OnSubmit")
Form.SystemFields
Returns the code snippet for the hidden input fields for the form.
@GetString("Form.SystemFields")
Available loops
AllFields
Alias to the Fields loop (does the same thing).
@foreach (LoopItem item in GetLoop("AllFields")){ <p>@item.GetValue("TagName")</p> }
Fields
The Fields loop lets you display information about the form fields.
@foreach (LoopItem item in GetLoop("Fields")){ <p>@item.GetValue("TagName")</p> }
Form.Submits
The Form.Submits
loop lets you display available data of the form submits.
@foreach (LoopItem item in GetLoop("Form.Submits")){ <p>@item.GetValue("TagName")</p> }
Options
If the field has any "options" (common for inputtypes like select/multiselect, checkbox and radio buttons), this loop contains its children.
@foreach (LoopItem item in GetLoop("Options")){ <p>@item.GetValue("TagName")</p> }