The <form> widget 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.
This widget generally is structured as shown below:
Form widget elements, like form elements, can be of different types. All field types functionality used in forms is supported there (such as properties, behavior, scalar type, and so on).
The components that create a dynamic form. The following attributes are applicable:
Attribute | Type | Mandatory | Description | ||
---|---|---|---|---|---|
class | String | N | Specify a CSS class name defined in the CSS field. | ||
isPortal | Boolean | N | Enable the tag to be displayed on the portal. | ||
name | String | N | This attribute stores the form name. Define the form name within the template in the Template field:
And after that, you can call it in the widget client script:
| ||
tableName | String | Y | Specify the table name. | ||
view | String | N | 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 UI actions using are prohibited due to any reasons (the uiActions attribute is equal to 'false'). | ||
titleHide | Boolean | N | Hide the title of the form. The default value is 'true'. The same goes for if the isPortal attribute value is equal to 'true'. | ||
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 | Set this attribute value to 'true' to make client scripts defined in the Client Script field available to use. Otherwise, their usage is prohibited | ||
sysid | String | N | Specify the ID of the table record.
|
<Form tableName="user" sysid="158747771611397284" view="Profile" save="Custom save button" uiActions="true" userScripts="true"></Form> |