Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Drop Down Search
add_action("gform_pre_render", "set_chosen_options");
function set_chosen_options($form){
<script type="text/javascript">
gform.addFilter('gform_chosen_options', 'set_chosen_options_js');
function set_chosen_options_js(options, element){
options.search_contains = true;
return options;
//return the form object from the php hook
return $form;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.