Populate Form Fields as Choices
Convert a form ID populated into a choice-based field into a list of fields that belong to that form.
This was designed for a scenario where one field is configured to populate forms from the gf_form
table and another
field is configured to populate the form ID from the gf_form_meta
table filtered by the selected in form in the first
field. This snippet will then take the form ID, fetch the form, and populate its fields as choices.
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Code
Filename: gppa-populate-form-fields-as-choices.php