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:

AttributeTypeMandatoryDescription
isPortalBooleanN

Set the value to true to enable the tag to be displayed on the portal. The default value is false.

isUserScriptsBooleanNSet the value to false to disable the client scripts execution. The default value is true.
modelIdStringNSpecify the ID of the RE model.
recordIdStringNSpecify the ID of an existing record to extend.
styleStringN

Specify the display settings (size, font, color, and others) of the tag elements using the CSS syntax.

If the attribute is not configured, the fields added with the <rem> tag look the same as the form fields.

tableNameStringY

Specify the name of the table for which the extended record model was created.

Examples:

rem
<rem modelId="{data.model_id}" tableName="{data.table_name}" recordId ="{data.record_id}"/>
Client script
(() => {
	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