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.

Pre-populating dropdown field with data from custom field

  1. snails007
    Member

    I’m not sure if my title made much sense but I will try to explain...

    I have embedded a form on my page beneath a loop that could potentially contain 1 – 50 posts (custom posts if that matters).
    I am wanting to pre populate a dropdown on the form with the value from a custom field from the posts above. The meta_key required is business_name and I need all of these business name values populated in the dropdown.

    I have had a look at this code but I’m not really sure how to use it, it doesn’t really give a ‘complete’ solution for a hack like me.
    http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields

    Thanks

    Posted 11 years ago on Friday May 4, 2012 | Permalink