cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jaypatel
Frequent Visitor

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
Super User
Super User

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
Super User
Super User

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)

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

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)

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

 

v-siky-msft
Community Support
Community Support

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

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)

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. 

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. 

 

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,992)