Afform - Accept default field values from the url
authorColeman Watts <coleman@civicrm.org>
Fri, 24 Sep 2021 20:42:12 +0000 (16:42 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 24 Sep 2021 20:42:12 +0000 (16:42 -0400)
commit4f7e8d8368647c999405077a8be98776210555cf
tree8154fe80d43d3169d63a31d19e8b952b90d8c682
parentf22faf012f1b368ae1000f39a5db7c783989cda0
Afform - Accept default field values from the url

On a submission-type form, the args will be prefixed with their entity names,
e.g. civicrm/my-afform#?Individual.first_name=Bob

On a search form the args don't need a prefix and just use the name of the field
ext/afform/core/ang/af/afField.component.js