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

Filter Drop Down Box based on previous choices

FYI I am stuck using the online version of PowerApps so struggling with some guides.

I am very new to this.

 

Two Parter Question:

I need my new app to do two things:

  1. I have 3 Drop downs, I need each one to reduce the options below
    1. Area makes only XYZ show in Line,
    2. Line makes ABC show in Zone
    3. Example.png
  2. I also need to after Picking the last Drop Down display Data and show cirtian fields
    1. Expiration A, B, & C has some Data based on the above options, and B & C may not be applicable depending.
    2. When I submit I need the Added data to also report to the Database

 

Example2.png

Example3.png

 

Can any one help me with how to do this?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Filter Drop Down Box based on previous choices

Hi @DuncanKlysh,

 

Check if below steps could achieve what you need:

 

 

1. Add Dropdown1 control for Area, set the Items property to:

 

["Area1","Area2"]

2. Add Dropdown2 control for Line/Gantry/Station, set the Items property to something like:

 

If(Dropdown1.Selected.Value="Area1",["X","Y","Z"],["W","O","S","X","Y","Z"])

3. Add Dropdown2 control for Zone, set the Items property to something like:

 

If(Dropdown2.Selected.Value="X",["A","B","C"],["A","B","C","D","E","F"])

4. Add TextInput1 control for ExpirationA.

5. Add TextInput2 control for ExpirationB, set the Visible property to something like:

If(Dropdown3.Selected.Value="A",true,false)

6. Do the same for ExpirationC as step 5.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Re: Filter Drop Down Box based on previous choices

Hi @DuncanKlysh,

 

Check if below steps could achieve what you need:

 

 

1. Add Dropdown1 control for Area, set the Items property to:

 

["Area1","Area2"]

2. Add Dropdown2 control for Line/Gantry/Station, set the Items property to something like:

 

If(Dropdown1.Selected.Value="Area1",["X","Y","Z"],["W","O","S","X","Y","Z"])

3. Add Dropdown2 control for Zone, set the Items property to something like:

 

If(Dropdown2.Selected.Value="X",["A","B","C"],["A","B","C","D","E","F"])

4. Add TextInput1 control for ExpirationA.

5. Add TextInput2 control for ExpirationB, set the Visible property to something like:

If(Dropdown3.Selected.Value="A",true,false)

6. Do the same for ExpirationC as step 5.

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,495)