This tag allows adding to portal a form consisting of model attributes.
The following attributes are applicable:
Attribute | Type | Mandatory | Description |
---|---|---|---|
isPortal | Boolean | N | This attribute allows declaring that this widget should be displayed on the portal. In the case of the <remform> SimpleTag, it is recommended to set the value of this attribute to 'true'. |
isUserScripts | Boolean | N | This attribute allows to enable client scripts execution. The default value is 'true'. |
recordId | String | N | This attribute allows to specify an ID of existing record to extend. |
saveButtonCaption | String | N | Specify text displayed on the Save button. |
style | String | N | This attribute specifies the display settings (size, font, color, and etc.) of the widget elements using the CSS syntax. |
tableName | String | Y | This attribute allows to specify a table containing the extending record. |
remform
<remform modelId="{data.model_id}" isPortal="true" tableName="rem_table" saveButtonCaption="Save" />
remform widget code
(() => { 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 })();