cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Post Prodigy
Post Prodigy

Unable to Show/hide single line of text based on a drop-down choice

I have a SharePoint online custom list, which contain these 5 fields:-

 

1. Deal --> choice with 2 choices (Yes & No).

2. Deal1 --> single line of text

3. Deal2 --> single line of text

4. Deal3 --> single line of text

5. Deal4 --> managed metadata

 

now i want to apply the following:-

 

If the user select No from Deal choice to hide Deal1.

 

So i did these steps:-

 

1. i select Deal1  >> under visibility >> i wrote this:-

deal1.png

 

but this did not have any effect and Deal1 will always be shown. so can anyone advice on this please?

1 ACCEPTED SOLUTION

Accepted Solutions

@johnjohn123 

Sorry, you should expand the Card for deal_Datacard1.  Then the field name starts with something like "DataCardValue"

 

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

 

Replace DataCardValue2 with whatever its called in your app.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

4 REPLIES 4
mdevaney
Super User III
Super User III

Instead of the card deal_Datacard1 you must target the dropdown instead. This usually starts with val_. Everything else is right

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

this is the drop-down in my case `deal_Datacard1`, i do not have any field which start with `val_`

@johnjohn123 

Sorry, you should expand the Card for deal_Datacard1.  Then the field name starts with something like "DataCardValue"

 

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

 

Replace DataCardValue2 with whatever its called in your app.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

ok worked well.

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

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

Top Solution Authors
Top Kudoed Authors
Users online (81,223)