Let's say i have a dropdown, and when 1 value is chosen (all locations), i want that the slider which represent the distance from current location to the item is hidden, because all locations are showed of course, no need to specify a maximum distance.

Any chance this may work? I am thinking with a listener on the form, when value changes, the form update and components (which are first hidden), will be shown after.

Kevin

StuartAshworth

4 Jan 2011, 3:09 AM

Use the Select field's 'change' event and check if the new value is the 'All Locations' value then hide the max distance slider. Something along these lines (completely untested!)