cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
suj
Level: Powered On

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

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

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
Highlighted
bean
Level 8

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

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

 

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

Sean

suj
Level: Powered On

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

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

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

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

suj
Level: Powered On

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

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

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

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

suj
Level: Powered On

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

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 438 members 5,793 guests
Please welcome our newest community members: