The <form> tag is a widget displaying a record form when necessary parameters (such as the table, form view, and record ID) are specified. It allows users to interact with the record form, while maintaining the form reaction. It also supports the functionality of widgets added to the form.
This widget generally has the following structure:
Form widget elements, like form elements, can be of different types. Functionality of all field types used in forms is supported in the widgets (such as properties, behavior, scalar type, and so on).
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 of the widget. | ||
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 the Template field:
Then call it in the widget client script:
| ||
tableName | String | Y | Specify the table name. | ||
view | String | N | Define a view name of the table, 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 uiActions attribute is equal to false). | ||
titleHide | Boolean | N | If set to true by default, the form header is hidden. | ||
uiActions | Boolean | N | Set this attribute value to true to make UI actions available to use. Otherwise, their usage is prohibited (except for the Save button specified by the save attribute). | ||
userScripts | Boolean | N | To make client scripts defined in the Client script field available to use, set this attribute value to true. Otherwise, their usage is prohibited. | ||
sysid | String | N | Specify the ID of the table record. The table should be specified first via the tableName attribute.
|
<Form tableName="user" sysid="158747771611397284" view="Profile" save="Custom save button" uiActions="true" userScripts="true"></Form> |