cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

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

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

Highlighted
Frequent Visitor

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

Highlighted
Super User
Super User

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)
Highlighted
Frequent Visitor

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

 

Highlighted
Community Support
Community Support

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

Highlighted
Super User
Super User

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
Frequent Visitor

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. 

Highlighted
Frequent Visitor

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. 

 

Highlighted
Community Support
Community Support

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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