cancel
Showing results for 
Search instead for 
Did you mean: 

Show categories based on first dropdown values in admin form

Show categories based on first dropdown values in admin form

 

I have added two components using Ui component in the admin form, the first one is a simple dropdown and the second one is a category selector

I want to show the parent category and its sub categories based on the values selected from the first dropdown.

how can I do that?

 

3 REPLIES 3

Re: Show categories based on first dropdown values in admin form

Hello @smita_kagwade 

 

Take some reference from here for category selector:

https://magento.stackexchange.com/questions/150578/magento-2-selected-categories-are-not-visible-in-...

 

Hope it will help to resolve your issue.

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Show categories based on first dropdown values in admin form

Hello @gaurav_harsh1 ,

I have checked it, but that is for showing selected categories inside edit form.
Thank You.

Re: Show categories based on first dropdown values in admin form

@smita_kagwade 

 

Share your dataProvider file and layout file(if possible).

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy