useForm
Import
Usage
Methods
Constructor(fields, mode = ‘edit’) : Constructor
Name | Type | Description |
---|---|---|
fields | Field[] or Field[][] | List of imported fields |
mode | edit OR insert | Use a form in edit record mode or create record mode. Defaults to edit |
Example
Dynamic attributes
$<ObjectApiName> : FormRecordRef
Supportive Fields
In some cases, you may want to import fields but not necessarily map them to an HTML input. To do just that, you want to use the supportive fields feature of createForm
and useForm
.
Fields passed to the supportiveFields
parameter won’t be reflected on the dynamic class property this.$<ObjectApiName>
intended to be used like so for example <c-bolt-form record={$Case} />
.