FormBuilder: silent failure if required fields not on form
Overview
FormBuilder does not show which fields are required to create an entity.
Reproduction steps
-
Create a new FormBuilder form
-
Add an activity
-
Select the type as Meeting
-
Give the form a name, url and Save.
-
Go to the url just created
-
Enter firstname = test, lastname = test, activity subject = test, Submit
Current behaviour
The contact is created but the activity is not. Note there is no error message.
Expected behaviour
Run-time: Show an error if the activity cannot be created.
Form-save: warn if required fields have not been added to the form, so creation will fail.
Form-edit: indicate which fields are required by the API. Compare FB with API Explorer eg
API Explorer: Required fields are shown with red asterisk
Environment information
- CiviCRM: Master
Comments
Note this is about fields required by the API, not fields marked as required on the form.