The <rem> tag adds model attributes 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.

The following attributes are applicable:

AttributeTypeMandatoryDescription
isUserScriptsBooleanNDisable client scripts execution. The default value is 'true'.
isPortalBooleanNSet the attribute to 'true' to display the widget on the portal.
modelIdStringNSpecify RE model ID.
recordIdStringNSpecify an ID of an existing record to extend.
styleStringN

Specify the display settings (size, font, color, etc.) of the widget elements using the CSS syntax.

tableNameStringY

Specify the name of the table containing the extending record.

rem
<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());
})();
  • No labels