Form Builder
Form-Builder provides a flexible form interface allowing editing a variety of CiviCRM entities as well as a developer interface.
At the moment the available UI entities are strictly hard coded. This is simply because others have not been tested/verified.
It is possible to expose entities by adding a declaration. To do this:
- ensure the entity in question has apiv4 crud entities
- create a php file in the following location -
afformEntities/EntityName.php
as you can see here in thededuper
extension - add the following detail - where
url-autofill
is the default value for autofill when adding this entity to a form.
<?php
return [
'entity' => 'ContactNamePair',
'label' => 'Equivalent name pair',
'defaults' => "{'url-autofill': '1'}",
];
Future schema plans
In future we are likely to make this part of the schema - this is an interim method.