I have created an module for admin which have admin form and this form have some fields.I have two select option drop down fields.If I choose first dropdown option value then second drop-down display some values and if I choose another option then value should be different.
I have search on forums but not found any solution.Please help me.
screenshot are attached.
Best Answer
This May Help you . I have used this on a drop-down in ui-component. Selecting a options shows respective field. add this code in your ui-component
Add
option.js
inI have used fields you can use drop down .