The <remform> tag allows adding you to the portal add a form consisting of model attributes to the portal.
Placing more than one widget instance with the <remform> tag on a page is not recommended. Unlike the <rem> tag, <remform> is used only for creating a single record at a time.
The following attributes are applicable:
Attribute | Type | Mandatory | Description |
---|
isPortal | Boolean | N |
This attribute allows declaring that this widget should be displayed Set the attribute to 'true' to display the widget on the portal. |
In the case of the <remform> SimpleTag, it It is recommended to set the value of this attribute to 'true'. |
isUserScripts | Boolean | N |
This attribute allows enabling Disable client scripts execution. The default value is 'true'. |
modelId | String | N | Specify RE model ID. |
recordId allows specifying stores the form name. Define the form name within the template in the Template field: Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
title | Form name |
---|
| <remform tableName="itsm_incident" name="incidentForm"></remform> |
And after that, you can call it in the widget client script: Code Block |
---|
language | js |
---|
theme | Eclipse |
---|
title | Form name |
---|
| const builtInForm = s_widgets.getForm('incidentForm');
await builtInForm.save(); |
|
recordId | String | N | Specify an ID of an existing record to extend. |
saveButtonCaption | String | N | Specify text displayed on the Save button. |
style | String | N |
This attribute specifies Specify the display settings (size, font, color, etc.) of the widget elements using the CSS syntax. |
tableName | String | Y |
This attribute allows specifying a Specify the name of the table containing the extending record. |
Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
title | remform |
---|
|
<remform modelId="{data.model_id}" isPortal="true" tableName="rem_table" saveButtonCaption="Save" /> |
...