Use the <rem> tag to add model attributes of an extended record to a form. The use case is when the administrator needs to extend a record form in the agent interface. The tag must be specified in the Template field of the widget.
Available attributes:
Attribute | Type | Mandatory | Description | |
---|---|---|---|---|
isPortal | Boolean | N | Set the value to true to enable the tag to be displayed on the portal. The default value is false. | |
isUserScripts | Boolean | N | Set the value to false to disable the client scripts execution. The default value is true. | |
modelId | String | N | Specify the ID of the RE model. | |
recordId | String | N | Specify the ID of an existing record to extend. | |
style | String | N | Specify the display settings (size, font, color, and others) of the tag elements using the CSS syntax.
| |
tableName | String | Y | Specify the name of the table for which the extended record model was created. |
Examples:
<rem modelId="{data.model_id}" tableName="{data.table_name}" recordId ="{data.record_id}"/> |
(() => { window.s_widget_custom = window.s_widget_custom || {}; const parameter = new URLSearchParams(window.location.search).get('model_id'); s_widget.setFieldValue('model_id', parameter); s_widget.setFieldValue('table_name', window.s_form.getTableName()); s_widget.setFieldValue('record_id', window.s_form.getUniqueValue()); })(); |