Components
Components

Record edit form

Tag: <we-record-edit-form>
Standard module: we_record_edit_form

Builds an editable form from object metadata or caller-provided sections and exposes save/cancel events.

Features

  • Loads layout metadata and renders editable sections.
  • Emits formready, fieldchange, save, and cancel.

Public parameters

JavaScript property HTML attribute Type Initial value Purpose
fieldSetName field-set-name String — Field set API name for form layout.
objectName object-name String '' Object API name in context.
recordId record-id String — ID of the record in context.
runAssignmentRules run-assignment-rules Boolean false Whether assignment rules run on save.
sections sections Array — Form sections supplied by the caller.
showActions show-actions Boolean — Whether form action buttons are shown.

Public methods

  • handleSaveClick() is exposed by @apiFunction.

Events

  • cancel is emitted as a DOM custom event.
  • fieldchange is emitted as a DOM custom event.
  • formready is emitted as a DOM custom event.
  • save is emitted as a DOM custom event.

Source: working/environment_modules/standard/we_record_edit_form/WebComponent/WeRecordEditForm.js.

All components