How can i reset the dropdown selections?
can i clear the dropdowns items?
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
I was finally able to make this work. I have 5 dropdowns that all pull their information from one dataset. I added a button and used the below code to return all values to the placeholder text, which on my page is "Select". It took me a long time to figure this out as I am a first time coder. Several of the examples I tried just would not work. Be sure to set the button properties to "onClick()"
export function button3_click(event, $w) { // This function was added from the Properties & Events panel. // Add your code for this event here: $w("#dropdown1").selectedIndex = null; $w("#dropdown2").selectedIndex = null $w("#dropdown3").selectedIndex = null; $w("#dropdown4").selectedIndex = null; $w("#dropdown5").selectedIndex = null; }