Refresh Dropdown Boxes

Hi All

I have a page with 4 dropdown boxes and a Search Button producing results in a Repeater:

The order is (with onChange names below):
#dropdownName4 - #dropdownName1 - #dropdownName2 - #dropdownName3
(season_change) (airport_change) (duration_change)

When someone selects 4 - 1 - 2 - 3 everything is cool. But then when they go back and start changing fields the problems happen.

Basically, I want when someone changes “#dropdownName4”, that the dropdowns after revert to placeholder text. So that they must be reselected.

My onChange code for season_change (#dropdownName4) starts:

=====================================
export function season_change(event, $w) {
uniqueDropDown1();
$w(“#dropdownName1”).enable();
}

Can someone tell me the little bit of code to make sure that the newxt field (#dropdownName1) reverts to Placeholder Text.

Many thanks in advance!!

Regards

Hugh

I believe all you have to do is add this somewhere in your code to reset that particular dropdown.

$w(“dropdownName1”).value = null;

Dear David

You are the man!

Thanks for that.

Regards

Hugh

glad to help!