Skip to main content
Version: 1.22.3

remform

Use the <remform> tag to add a form consisting of model attributes to the portal.

Placing more than one widget instance with the <remform> tag on a page is not recommended. Unlike the <rem> tag, <remform> is used only for creating a single record at a time.

note

When using the <remform> SimpleTag, the s_form object in model client scripts will be the form displayed by the tag.

To directly access the main record form containing the widget, use the construction s_widgets.getForm('formName'), where formName is the name of the view.

Available attributes:

AttributeTypeMandatoryDescription
isPortalBooleanNSet 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.
nameStringNThis attribute stores the form name.
Define the form name in the Template field. Then, call it in the widget client script.
recordIdStringNSpecify the ID of an existing record to extend.
saveButtonCaptionStringNSpecify the text displayed on the Save button.
styleStringNSpecify 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.
tableNameStringYSpecify the name of the table to which this tag is bound.

Example:

remform
<div simple-if="{data.isShow}">
<remform
name="requestForm"
isPortal="false"
modelId="{data.modelId}"
tableName="{data.tableName}"
recordId="{data.recordId}"
></remform>
<checkbox
model="data.copyCaller"
label="{data.questionText}"
></checkbox>
<div class="reclassification-rem-model-widget__buttons">
<button
buttonType="secondary"
event-click="window.s_widget_custom.cancel()"
>{data.buttonCancel}</button>
<button
buttonType="primary"
event-click="window.s_widget_custom.create()"
>{data.buttonCreate}</button>
</div>
</div>

The template above adds the following form to the page: