Making Chosen responsive

1 0

Chosen by default inits using a fixed width, so you need to use the gform_chosen_options hook to tell it to use a percentage based width instead. For example:

gform.addFilter('gform_chosen_options', 'set_chosen_options_js');
function set_chosen_options_js(options, element) {
options.width = '75%'; // set chosen width to use percentage based width
return options;

Leave Your Observation

Your email address will not be published. Required fields are marked *