Afform - Add field types + pseudoconstant metadata to AfformSubmission entity
authorColeman Watts <coleman@civicrm.org>
Sat, 25 Dec 2021 23:38:45 +0000 (18:38 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 26 Dec 2021 19:05:41 +0000 (14:05 -0500)
commite3d278330cfb04655a9572e6aaa004e7d9fc5d0b
tree8f12669b29b89fe86fff06b598c0c0d6021765f9
parent4f5b0626e6ddf6d692000b25db22fab1d54a0eb4
Afform - Add field types + pseudoconstant metadata to AfformSubmission entity

The html type info is needed for the fields to be usable in the Afform GUI.

The reason for adding the pseudoconstant is to facilitate automatically fetching
the title from the afAdminFormSubmissionList form.

This could be inefficient for sites with thousands of forms,
but I think that's sufficiently mitigated by the fact that
this pseudoconstant won'be be used for much;
it won't generally be loaded onto the client-side.
ext/afform/core/CRM/Afform/BAO/AfformSubmission.php
ext/afform/core/CRM/Afform/DAO/AfformSubmission.php
ext/afform/core/xml/schema/CRM/Afform/AfformSubmission.xml