Events
Form Builder Events¶
civi.afform_admin.metadata
¶
Alter metadata for the Form Builder GUI
Since: CiviCRM 5.50
Type: GenericHookEvent
Params:
entities
(array) List of entities that can be used in the Form Builder GUI. Each one contains array keysname
(string),label
(string),icon
(string:"fa-*"),type
(string:"primary"|"secondary"),defaults
(string:js object).inputTypes
(array) Form widgetselements
(array) Static elements that can be added to a form.styles
(array) Bootstrap3 style strings.permissions
(array) Permissions that can be set for an Afform.dateRanges
(array) Date range options.
civi.afform.submit
¶
Handle submission of an "<af-repeat>
).
Since: CiviCRM 5.31
Type: AfformSubmitEvent
Methods:
- getEntityType(): string
- getEntityName(): string
- getRecords(): array
- getSecureApi4(): callable
- setEntityId(int $index, int $id)
- setRecords(array $records)
- setJoinIds(int $index, string $joinEntity, array $joinIds)