cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jaypatel
Level: Powered On

how to get dropdown of field 2 as per field 1

Field 1:

    Cars: BMW, AUDI, HONDA (Dropdown list)

    Carmodels: BMWx5,BMWx3,audiA5,audiA3,HoncaCity,...  (Dropdown list)

Lets say if I select BMW then in carmodel dropdown it should only show the BMWx5,BMWx3(Connected with each other)

 

Entity

   Cars: (Id, name)

   Carmodels: (id,model,name) where name is Cars name 

 

So in power apps do i have to add both entity? Because the form is on 3rd entity. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Level 10

Re: how to get dropdown of field 2 as per field 1

Yes, you need to add both the entities. The two dropdowns will each have their Items property set as follows:

 

Car Dropdown: Items Property = Cars

Car Model Dropdown: Items Property = Filter(CarModels, Name = CarDropdown.Selected.Name)

 

This should give you something like this: 

Car1.PNG

Car2.PNG

Car3.PNG

 

Let me know if this helps. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

10 REPLIES 10
PowerAddict
Level 10

Re: how to get dropdown of field 2 as per field 1

Yes, you need to add both the entities. The two dropdowns will each have their Items property set as follows:

 

Car Dropdown: Items Property = Cars

Car Model Dropdown: Items Property = Filter(CarModels, Name = CarDropdown.Selected.Name)

 

This should give you something like this: 

Car1.PNG

Car2.PNG

Car3.PNG

 

Let me know if this helps. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

jaypatel
Level: Powered On

Re: how to get dropdown of field 2 as per field 1

Its not working. 

Car Dropdown: Items Property = Cars

Errors: Property (name is not valid)

            Items (Expected operator such as + *  )

            Car (name is not valid)

am i getting error because of The form is in third entity ? call Showroom

PowerAddict
Level 10

Re: how to get dropdown of field 2 as per field 1

I used those names as examples. Replace Cars with your datasource or list name that has car brands in it.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)
jaypatel
Level: Powered On

Re: how to get dropdown of field 2 as per field 1

Car Dropdown: Items Property = Cars (What is Car in it? DropDown is Datacardvalue? or its default keyword

 

v-siky-msft
Level 10

Re: how to get dropdown of field 2 as per field 1

Hi @jaypatel,

 

Could you share some screenshot with your issue?

Do you add these two dropdowns in data card of form?

I'm agree with PowerAddict's workaround. You just need to use Filter function to filter out the Carmodels based on selected Car name in cars dropdown.

If that doesn't work, could you share more details with your apps?

Best regards,

Sik

PowerAddict
Level 10

Re: how to get dropdown of field 2 as per field 1

Cars is my collection/data source where I have the car records stored.

That expression is the Items property of the dropdown.

Let me know if you want to discuss this further via chat or screenshare.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)
Highlighted
jaypatel
Level: Powered On

Re: how to get dropdown of field 2 as per field 1

Thanks for your Reply!

So basically that was just an car example. I will share whole issue here.

Total data sources: 

       1.PerformanceCriteria (Title: (Ex: Operation Fundamentals) )

       2.Attributes (Title: Monitor closely & control Precisely connected to  Operation Fundamentals which is Performance Critea )

       3. ObservationReportv3 (FINAL FORM THAT TAKE INPUT it has field call PerformanceCriteria1 and  Attributes 1)

 

1 and 2 are connected with each other. 

 

Please see pictures that I attached. 

jaypatel
Level: Powered On

Re: how to get dropdown of field 2 as per field 1

Thanks for your Reply!

I am totally confused sir!

So basically that was just an car example. I will share whole issue here.

Total data sources: 

       1.PerformanceCriteria (Title: (Ex: Operation Fundamentals) )

       2.Attributes (Title: Monitor closely & control Precisely connected to  Operation Fundamentals which is Performance Critea )

       3. ObservationReportv3 (FINAL FORM THAT TAKE INPUT it has field call PerformanceCriteria1 and  Attributes 1)

 

1 and 2 are connected with each other. 

 

Please see pictures that I attached. 

 

v-siky-msft
Level 10

Re: how to get dropdown of field 2 as per field 1

Hi @jaypatel ,

 

Please try this:

Set the first dropdown1's Items property: PerformanceCriteria, Value property: Title

Set the second dropdown2's Items property: Filter(Attributes, PerformanceCritea.Value=Dropdown1.Selected.Title), Value property: Title

When you select a PerformanceCriteria item, the dropdown2 will list all Attributes Title that correspond to the selected PerformanceCriteria item.

Hope this help.
Best regards,

Sik

If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,271)