#Validate dropdown
1 messages · Page 1 of 1 (latest)
Also can I assign a value like this dropdown1.selectedOptionValue ='xyz'
eventhough it allows me to do. It wont get reflected in the frontend
@elder whale
Hey you cannot directly assign values to variables, it won't trigger a change. Store a value in the appsmith store and then use that value in the selectedOptionValue like {{appsmith.store.dropdownValue}}. Please check this video it will help - https://www.youtube.com/watch?v=UUvJn8oWqNs
The Appsmith store provides a simple interface to save data in key-value pairs with an API similar to the browser’s localStorage. This video shows how to interact with the store using the storeValue function 🏬
Learn more about using the storeValue function https://docs.appsmith.com/framework-reference/store-value
Next steps
• Learn how to dyna...