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.

Prepopulate dynamically selected values of a Chosen dropdown

  1. I want to automatically select values in a Chosen dropdown but can't manage to do it.

    Here the code I use :

    add_filter(gform_field_value_chosenbox, create_function('', "return '{$inherited_value}';"));

    with :

    print_r($inherited_value);

    returning :

    Array ( [0] => Item1 [1] => Item4 )

    Just to mention that these values (Item1 and Item4) are configured the same way in the form (Label and Values are the same).

    Thank you for your cooperation !

    Posted 12 years ago on Wednesday July 11, 2012 | Permalink
  2. David Peralty

    Can you give me more information on what you are trying to do, I don't understand. Are you trying to set default selected values for drop downs?

    Posted 12 years ago on Thursday July 12, 2012 | Permalink
  3. David Peralty

    Going to work through this on the Priority Support Request.

    Posted 12 years ago on Thursday July 12, 2012 | Permalink

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