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 a drop-down with post titles

  1. First of all, thanks for creating such a versatile and useful plugin.

    I created a custom post type named job_opportunities for my website's careers section, and I use it to post new job openings on the company website.

    I would like to populate a drop-down on the job application page with the titles of all posts from that custom type so that when filling the job application, users will be able to select which position they are applying for.

    How do I go about this? I searched for similar topics but couldn't find anything that fit my requirements. Alternatively, is there a way for me to pass the data to that field automatically when users click the apply now link on a particular job opportunity?

    Any help would be greatly appreciated.

    Posted 12 years ago on Tuesday August 16, 2011 | Permalink
  2. We have a tutorial on how to populate a drop down dynamically. And as luck would have it, the tutorial uses post titles as an example. You may have to customize it further to suit your needs.

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

    Posted 12 years ago on Tuesday August 16, 2011 | Permalink
  3. Thanks Carl. I was able to modify it and it worked perfectly.
    Here's a link to my code on Pastie, in case anyone has the same problem: http://pastie.org/2386292

    Posted 12 years ago on Wednesday August 17, 2011 | Permalink
  4. Thanks for sharing your code.

    Posted 12 years ago on Wednesday August 17, 2011 | Permalink

This topic has been resolved and has been closed to new replies.