Form Builder: Re-ordering custom field multiple choice options causes front-end IDs to change
Overview
We created a sweet little Form Builder that submits the entered information into a CiviCase. In some cases, I needed to show/hide some additional fields based on what they entered in Interests so I added some front-end JQuery.
Later, without realizing, the Interests checkbox list was re-ordered, which in tern seems to have changed the IDs for each checkbox item.
Example use-case
- Create a Custom Field set (associated to Individual in my case)
- Add a
Alphanumberic
checkbox field called Interests - Create a FormBuilder
- Add Interests field
- Save and view the form
- Check the IDs associated to a few checkbox items
- Edit the Interests checkbox options and re-order them
- View the form
Current behaviour
Presently, I had assumed that perhaps the ID being generated would actually be associated to the actual checbkox ID and would be static (not changing on order change).
Proposed behaviour
Is it possible that Form Builder use the actual Multiple Choice ID or if this isn't unique enough perhaps we could use something like <field-name>-<field ID>-<multiple choice ID>