web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to visible based o...
Power Apps
Answered

How to visible based on Value

(0) ShareShare
ReportReport
Posted on by 438

How to set up for visible based on value from SharePoint.

 

There are two text labels, one for the value 'Yes' and another for the value 'No.

 

If based on value is "No". (see below screenshot)               If based on value is "Yes". (see below screenshot)

Screenshot 2023-11-05 015525.pngScreenshot 2023-11-05 015403.png

^^ Label1_107                                                                       ^^ Label1_106

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @dylandavis09 , Hi Again! If I understood your requirement, you are looking for hide or show the label based on value? Then below code can help you and this should be on visible property of control:

    If(SPValue = "Yes", true, false)

     

    If this is not the one that you are looking then give little bit of background of SP list and column.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


     

  • dylandavis09 Profile Picture
    438 on at

    @ANB, Hi again! This is not the one. I have a screenshot to show that I have a SharePoint list column. If 'yes,' the label will be displayed; if 'no,' the label will be hidden.

     

    Screenshot 2023-11-05 004513.png

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @dylandavis09 , Please try this:

    If(Lookup('DHS Students Users', 'Full Name' = User().FullName).Graduation = "Yes", true, false)

    If the 'Full Name' is text type column and Graduation is also text type column in SP list. If this does not work then please help me with type of both the columns in SP list.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • cdwhite Profile Picture
    1,069 Most Valuable Professional on at

    Hi @dylandavis09 ,

    Is Graduation a choice column in your list? If so, you'll need to reference it in any formula for your visible property like so:

    If(Graduation.Value = "Yes", true, false)

    As the Visible property is boolean anyway, you can streamline your code further. For the label where the Graduation columns is yes:

    Graduation.Value = "Yes"

     And where equals no:

    Graduation.Value = "No"

    ------------------------------------------------------------------------------------------------------------------------------
    If I've answered your question, please mark your post as Solved. You can accept more than one post as a solution.

    If my response was a good one, please give it a Thumbs Up!

    Visit my blog: https://platformsofpower.net

  • Verified answer
    ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    Hi @dylandavis09 , As i remember for your other queries where I tried helping you. You have being using Choice column type for other SP list.

    If 'Full Name' is Person type column and Graduation is of Choice, then below code will help.

     

    If(Lookup('DHS Students Users', 'Full Name'.DisplayName = User().FullName).Graduation.Value = "Yes", true, false)

     

    If 'Full Name' is text type column and Graduation is of Choice, then below code will help.

     

    If(Lookup('DHS Students Users', 'Full Name' = User().FullName).Graduation.Value = "Yes", true, false)

     

     -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • dylandavis09 Profile Picture
    438 on at

    Thank you! I just added it, and still shows as error. Should be works, I don't know why it's still error.

    Screenshot 2023-11-05 113913.png

  • ANB Profile Picture
    7,250 Super User 2026 Season 1 on at

    What is the error message? What is the type of Full Name column?

     

    Thanks,

    ANB

  • dylandavis09 Profile Picture
    438 on at

    Hi @ANB, sorry, I just found out that I was wrong to use a comma; it should be an equal sign (=). All good! Thank you!

    Also, I'm still having issues with DisplayMode. It didn't save the work after I locked my computer in sleep mode. 😭 I just start over. Please check: Display Mode If Lookup - Power Platform Community (microsoft.com)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard