You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

The <remform> tag allows adding a form consisting of model attributes to the portal.

The following attributes are applicable:

AttributeTypeMandatoryDescription
nameStringN

This attribute stores the form name.

Define the form name within the template in the Template field:

Form name
<remform tableName="itsm_incident" name="incidentForm"></remform>

And after that, you can call it in the widget client script:

Form name
const builtInForm = s_widgets.getForm('incidentForm');
await builtInForm.save();
isPortalBooleanN

Set the attribute to 'true' to display the widget on the portal.

In the case of the <remform> SimpleTag, it is recommended to set the value of this attribute to 'true'.

isUserScriptsBooleanNDisable client scripts execution. The default value is 'true'.
recordIdStringNSpecify an ID of an existing record to extend.
saveButtonCaptionStringNSpecify text displayed on the Save button.
styleStringN

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

tableNameStringYSpecify the name of the 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
})();
  • No labels