The <form> tag is a widget displaying a record form when necessary parameters (such as a table, form view, record ID) are specified. It helps to ensure user interaction with the record form, in terms of the field changes and form reaction. It also supports the functionality of widgets added to the form.
Structure
This widget generally has the following structure:
Embedded widget containing the form elements.
The header block:
A header can be taken from the column with theDisplay by Refattribute turned on.
The section block:
The Default section should be the first in the section list if there is more than one.
Every widget section is relevant to the appropriate form sectionand has its own title.
This block is mandatory.
The footer block containing UI actions (buttons and others).
Elements
Form widget elements, like form elements, can be ofdifferent types.All field types functionality used in forms is supported in the widgets (such as properties, behavior, scalar type, and so on).
If a widget element displays date and time, it is displays them in the user timezone.
The widget elements containing multilanguage fields and use theTranslated Textfield type (such as table and column titles, choice options) display the values in the current user locale.
Attributes
To create a dynamic form, use the following attributes:
Attribute
Type
Mandatory
Description
class
String
N
Specify a CSS class name defined in the CSS field.
isPortal
Boolean
N
To enable the tag to be displayed on the portal, set the value true. The default value is false.
name
String
N
This attribute stores the form name.
Define the form name within the template in theTemplatefield:
Define a name of the table template view, for example, "Default"
save
String
N
Add a Save button on the form with the customized text (see the code example below).
It makes sense to use this attribute when it is impossible to use the UI actions due to any reasons (the uiActionsattribute is equal to false).
titleHide
Boolean
N
Hide the title of the form. The default value is true.
uiActions
Boolean
N
Set this attribute value totrueto make UI actions available to use. Otherwise, their usage is prohibited (except for theSavebutton specified by thesave attribute).
userScripts
Boolean
N
To make client scripts defined in the Client Scriptfield available to use, set this attribute value totrue. Otherwise, their usage is prohibited.