Open balbuf opened 8 years ago
Hi,
I have been looking for the same, and yes it's possible. What I did in my theme I just used that snippet withing my wp_enqueue_script action.
if ( wp_script_is( 'chosen', 'registered' ) ) {
wp_enqueue_script( 'chosen' );
} else {
wp_enqueue_script( 'gform_chosen' );
}
Hope it helps ;).
Gforms may already have a bundled version of chosen.js - can we use that?