Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

reset dropdown on change of value in other dropdown

Hi.I have two dropdowns.First has its values as select,A,B and C.Second dropdown has its values as select,D,E and F.When I change the value of first dropdown,second dropdown get visible.Now when I again change the first dropdown's value second dropdown gets visible with the previos value.But I want to reset the second dropdown to "select" whenever I change the value in first dropdown.Whant can be the possible solution?
.

replied

Unless "select" is an actual item in your dropdown, in that case you can just do:

dropdown2.setSelectedKey("select");

or

dropdown2.setValue("select");

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question