This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// set options for chosen e.g disable search or set width to use percentage | |
add_action('gform_pre_render','set_chosen_options'); | |
function set_chosen_options($form){ | |
if(wp_script_is('gforms_chosen',$list='queue')){ | |
?> | |
<script> | |
gform.addFilter('gform_chosen_options','set_chosen_options_js'); | |
function set_chosen_options_js(options,element){ | |
//options.placeholder_text_single = 'Selectionner une Option'; // set default placeholder for blank first option | |
//options.search_contains = true; // search options for partial matches |
NewerOlder