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, andcancel.
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
cancelis emitted as a DOM custom event.fieldchangeis emitted as a DOM custom event.formreadyis emitted as a DOM custom event.saveis emitted as a DOM custom event.
Source: working/environment_modules/standard/we_record_edit_form/WebComponent/WeRecordEditForm.js.