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 populate drop-down with Post titles in more than one form

  1. Desmond
    Member

    I followed the information in
    http://www.gravityhelp.com/forums/topic/dynamically-populating-a-drop-down-with-post-titles
    and
    http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields

    That worked, thank you.
    However, now I want that same field (with a drop-down displaying a list of post titles) to appear in more than one form. I tried entering another set of the code for the functions.php and adding the new form ID, but that broke the entire site.

    Suggestions?

    Posted 13 years ago on Thursday December 1, 2011 | Permalink
  2. Please post the code you are using and the errors you are getting. If you used the same function name twice, once for each form, that will give you an error like "cannot redeclare" whatever function, because it was declared once already. You will have to rename one of the functions so there is no conflict. Or, think differently about how the function is applied to multiple forms.

    We can help you more if you post the actual code you are using, and the errors you receive. If the code is more than a few lines, please use a service like pastebin.com or pastie.org. Thank you

    Posted 13 years ago on Thursday December 1, 2011 | Permalink