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.

How do I create a drop-down that lists categories?

  1. Desmond
    Member

    I want a drop down field to display a current list of categories on the site, much the way http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields explains.

    I do NOT want to use the Post Field - Category field because I do not want to create posts, but rather people fill out a registration form and need to be able to select a category.

    I haven't been able to nail down whether I would alter the code in the article above or use a value in Allow field to be populated dynamically > Parameter Name; and what exactly that code should be.

    If anyone can point me to specific syntax for this, that would be great.

    Posted 12 years ago on Tuesday August 28, 2012 | Permalink
  2. David Peralty

    Have a look at this hook, there is an example of grabbing information from WordPress and pushing it into a dropdown:

    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Posted 12 years ago on Wednesday August 29, 2012 | Permalink