...
Attribute | Type | Mandatory | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
isPortal | Boolean | N | Set the attribute to 'true' to display the widget on the portal. It is recommended to set the value of this attribute to 'true'. | ||||||||||||||||||
isUserScripts | Boolean | N | Disable client scripts execution. The default value is 'true'. | ||||||||||||||||||
modelId | String | N | Specify RE model ID. | ||||||||||||||||||
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:
| ||||||||||||||||||
recordId | String | N | Specify an <![CDATA[ID of an existing record to extend. | ||||||||||||||||||
saveButtonCaption | String | N | Specify text displayed on the Save button. | ||||||||||||||||||
style | String | N | Specify the display settings (size, font, color, etc.) of the widget elements using the CSS syntax. | ||||||||||||||||||
tableName | String | Y | Specify the name of the table containing the extending record. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<![CDATA[<remform modelId="{data.model_id}" isPortal="true" tableName="rem_table" saveButtonCaption="Save" /> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<![CDATA[(() => {
window.s_widget_custom = window.s_widget_custom || {};
const modelId = new URLSearchParams(window.location.search).get('model_id');
s_widget.setFieldValue('model_id', modelId); // Provide form of new record with model id
})(); |
...