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

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

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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (6,231)