Afform - support default values for fields
authorColeman Watts <coleman@civicrm.org>
Wed, 4 Aug 2021 02:32:38 +0000 (22:32 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 5 Aug 2021 00:22:48 +0000 (20:22 -0400)
commit3aed34464ae66c45f783f78aea4b590eb5118078
tree118fcc5d45e0162282c57d40a4119e3e2c989e61
parentab20115ddf03192aa2efd6ca29a600bb5b50f7ac
Afform - support default values for fields

This adds an "afform_default" property to the field definition.
It does not use the "default_value" property from getFields because that's more
to do with Civi's schema and often not appropriate for a form.
Fixes dev/core#2734
css/civicrm.css
ext/afform/admin/ang/afGuiEditor.css
ext/afform/admin/ang/afGuiEditor.js
ext/afform/admin/ang/afGuiEditor/afGuiFieldValue.directive.js
ext/afform/admin/ang/afGuiEditor/elements/afGuiField-menu.html
ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js
ext/afform/admin/ang/afGuiEditor/inputType/CheckBox.html
ext/afform/admin/ang/afGuiEditor/inputType/Radio.html
ext/afform/admin/ang/afGuiEditor/inputType/Select.html
ext/afform/core/ang/af/afField.component.js