I also have coded in save search so if they leave and come back the prior search is saved, but with multiple drop downs I could see it nice for a reset for the entire search.
There is this for clearing drop downs (you can add line for each drop down (#iwhatever)
export function button147_click(event, $w) { //Add your code for this event here: $w("#iCategory").selectedIndex = 0; // add code for other dropdown selection menus }
However, this will not work to also clear the text input of a search box...so what have we got out there to remedy?
Another issue I have found is that if a null is returned on dropdown search, clearing search does clear drop downs but subsequent searches do not work, you have to refresh screen. So any thoughts on fixing null returns on drop downs?
One can add this into the export function above:
$w("#categorydropdown").selectedIndex = undefined;
It does work if one drop down was selected with a null. However, if a visitor for whatever reason clicks several with resultant nulls, we are back to fubar and screen must be refreshed.