I am using Conditional Fields to hide 2 fields of type List (text). When the user select a value of another List field in the form they become visible. When they do they are not styled with Chosen even if they are supposed to.

If I make them visible by default (on page loading) Chosen will apply correctly, if they are hiding at page load and visible only after the click (of the dependee), they will show without Chosen.

Comments

Joe_Smith’s picture

Chosen doesn't seem to process select fields if they are initially hidden. This problem was never solved in this issue too: Doesn't work in collapsed fieldset.

Dave Reid’s picture

Status: Active » Closed (works as designed)

Change the default selector to 'select' instead of 'select:visible' in the module configuration.

doxigo’s picture

Thanks for the answer Dave, but the issue changes if you switch the selector to select. it makes the field visible by default and it's not hidden anymore.

sarav.din33’s picture

@dave, thanks a lot for the answer.