Hi,
I'm using the Registration add-on to create a registration form.
My registration form includes a checkboxes field that I want to dynamically populate from a heirarchical taxonomy.
And I want the checkboxes to be displayed in the form in a heirarchical format
- Parent Term 1
- child term 1.1
- child term 1.2
- parent term 2
- child term 2.1
- child term 2.2
child term 2.3
- parent term 3
- child term 3.1
What hooks should be using to this? I want to be able to populate the checkboxes and display them in a heirarchical way and in html columns.
I tried gform_field_content so that I can replace the content of the checkboxes field with html tags that I can style. I was able to display the checkboxes in the format I wanted.
But, whenever I submit the form, the selected checkboxes are lost and the validation complains that I did not select any checkboxes (it is a required field).
Also, if I make this field not required, select few checkboxes and submit the form, the selected values from the checkboxes are not saved in the database.
Could you please help me figure out this issue? I'm unable to move forward with this. I have been struggling with this for the last 2 days.
Thank you,
RB