cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Field visable only if another field is set to a particular value

Hi I have a Powerapp connected to a SharePoint List that has multiple choice fields.  I want the drop down for a second choice field to only appear if the first drop down is set to a particualr choice.  This has been asked multiple times on the forums and people seem to have found the solution but I just can't seem to get it to work.

 

So i changed the Visable property for the dependant dropdown from True to   If(ORCA.Value="Yes",true,false)  

The dependant downdown disapears but when i try out the app and change the value fo the first field to Yes the dependant dropdown never reappears.  I am not sure what i am doing wrong.  Maybe I have the wrong variable names; I really have no idea.

 

2.PNGCapture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
bean
Continued Contributor
Continued Contributor

hmmm... weird. Okay... on the right handside click "Unlock to change properties" because that wont hurt...

 

If you click on the datacard(like you have in the picture), then click on the dropdown box(to select it), on the right it's name should be highlighted - which from here is possibly called "DataCardValue2"...

 

Try If(DataCardValue2.Selected.Value = "Yes", true, false)

 

EDIT: also, if you start typing in the visible box and type "DataCardValue2." you should see other reccomendations appear on what DataCardValue2's properties are.

 

Sean

View solution in original post

6 REPLIES 6
bean
Continued Contributor
Continued Contributor

Hmm, I think your theory is right... perhaps try:

 

If(ORCA.Selected.Value = "Yes", true, false)

Sean

Anonymous
Not applicable

Hi Sean,

 

Thanks for the assist.  I have tried Selected.Value as well and I couldn't get it to work and it doesn't even seem to recognize it.

3.PNG

bean
Continued Contributor
Continued Contributor

Oh! It's probably because that dropdown isn't called ORCA then... (Hense the error message "Invalid name").

 

If you click on the datacard which it is in, you will see it's probably called Dropdown1 (Unless you have named it to ORCA - then I'm stuck).

 

So try Dropdown1.Selected.Value

 

Sean

Anonymous
Not applicable

Sorry I have attached picture of the ORCA field selected.  Can you let me know what to name i should use to call the dropdowm.  Thanks again in advance

4.PNG

bean
Continued Contributor
Continued Contributor

hmmm... weird. Okay... on the right handside click "Unlock to change properties" because that wont hurt...

 

If you click on the datacard(like you have in the picture), then click on the dropdown box(to select it), on the right it's name should be highlighted - which from here is possibly called "DataCardValue2"...

 

Try If(DataCardValue2.Selected.Value = "Yes", true, false)

 

EDIT: also, if you start typing in the visible box and type "DataCardValue2." you should see other reccomendations appear on what DataCardValue2's properties are.

 

Sean

View solution in original post

Anonymous
Not applicable

That did it! Now just need to start getting used to PowerApps.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (47,382)