PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Dynamically Populating checkboxes with post titles from a specific category?

  1. I have an "Events" category. I would like to dynamically populate a set of check boxes on a Gravity Form using the post titles from this category. I am assuming I would use a hook, but I'm not sure how to go about this the correct way. Can anyone give me some insight or point me in the right direction? Is this even possible?

    Example:
    Register for an event:
    [ ] Event 1
    [ ] Event 2
    [ ] Event 3

    Posted 10 years ago on Tuesday October 4, 2011 | Permalink
  2. I am looking at the code here: http://pastie.org/2105544

    Could I simply substitute the type='select' to type='checkbox' ?

    Do checkboxes use the same "choices" array?

    Posted 10 years ago on Tuesday October 4, 2011 | Permalink
  3. No, you wouldn't populate checkboxes the same way you populate a drop down. A drop down is a single field. Checkboxes are multiple inputs, they are completely different. Checkboxes are much more complex.

    Here is a forum post that discusses how to dynamically populate checkboxes:

    http://www.gravityhelp.com/forums/topic/dynamic-checkboxes

    Posted 10 years ago on Tuesday October 4, 2011 | Permalink