I need to create backend admin form which contains two dropdown fields.But One is dependent on other. One dropdown contains attributes like brand,color etc.. The second one contains associate options of the attribute what you select in the first dropdown. If you select Brand, It should show all the available brands in second dropdown.

enter image description here

If you select color It would show all the available colors in the second dropdown enter image description here

Is above scenario is possible in ui-component form in magento 2. Please suggest me, Am I need to create ui-component form or php form to do my task. Thanks in advance

  • Hi jaisa, Have you found any solution for that? Commented Apr 10, 2019 at 19:38
  • @krupaparikh, I done this using layout grid instead of using ui component. In layout grid you can add template for the specific field. If you have doubts let me know thanks
    – Jaisa
    Commented Apr 11, 2019 at 4:06
  • Do you know about how to update data in ui select dropdown?
    – Niket
    Commented Nov 9, 2019 at 5:34

1 Answer 1


Please check example


This example uses attributes color and manufaturer (as defined in di.xml). Also it does not cover dataProvider usage and other things related to the ui component. Just about dependent selects.

  • Thanks for you reply,I will check and let u know
    – Jaisa
    Commented Nov 11, 2019 at 5:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.