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.

HELP! Dropdown items appearing below form.

  1. I want to pre-populate a dropdown menu in a list with items from a custom post type. I found an existing post (http://www.gravityhelp.com/forums/topic/list-field-drop-down-option) that seems to be exactly what I'm looking for, but it just isn't working. My drop-down has the correct label, but the options don't appear there. Instead, they're listed below the form.

    Here's a rough example I uploaded to show you what I mean: http://dieudonne.runcus.com

    This is what's in my functions.php: http://pastie.org/7705461

    See how the drop-down menu is empty and the 5 names appear at the bottom? Am I doing something wrong?

    Posted 11 years ago on Tuesday April 30, 2013 | Permalink
  2. You're not calling the filter correctly. You're not sending any arguments. From the documentation, this is how you call the filter (adapted to your use):

    [php]
    // form 2, field 3, column 1
    add_filter("gform_column_input_2_3_1", "employee_name_column", 10, 5);
    function employee_name_column($input_info, $field, $column, $value, $form_id){

    Those 5 arguments need to be sent to your function, exactly like that. Take a look at the documentation page again. http://www.gravityhelp.com/documentation/page/Gform_column_input

    Posted 11 years ago on Tuesday May 7, 2013 | Permalink
  3. Thanks for the response. I made the changes, but unfortunately the situation hasn't improved. The updated version is here:

    http://dieudonne.runcus.com

    This is what's now in my functions.php: http://pastie.org/7823197

    Any ideas?

    Posted 11 years ago on Thursday May 9, 2013 | Permalink