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 / Visibility based on SP...
Power Apps
Answered

Visibility based on SP Yes/No column

(0) ShareShare
ReportReport
Posted on by 163

Hi All,

 

I'm missing something. I feel like this is such a basic operation.

I have a Yes/No column in a SharePoint list.

In the app, I'm trying to make an If statement stating that, if the check box is checked, then make the image visible.

I just can't seem to get the column reference syntax right: 

If('TEST_CS_tool(EN)';color_chart.value, true, false)

 

Feedback would be great appreciated.

Thanks-Erik

 

 

Categories:
I have the same question (0)
  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    It's as simple as setting the visibility of the image to the column value.

     

    charlessexton_0-1700829904808.png

     

  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @ErikM9 

     

    Try this:

    If('TEST_CS_tool(EN)'.color_chart, true, false)

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • jfeghali Profile Picture
    68 on at

    If I understand correctly, the solution should be rather simple. In the Visibility property of the image:

    ThisItem.'Yes/No-Column'.Value

     You shouldn't need any if statement, as the column is a boolean. Change 'Yes/No-Column' to the name of your column.

     

    Let me know, if you need any more help 🙂

  • ErikM9 Profile Picture
    163 on at

    Thanks charlessexton

    PowerApps is not accepting "ThisItem" as a function?

    I've inserted a Image into a container. In Visible, I want to say, If(ListName.Column, is equal to true (visiable, else false(hidden)

     

    Erik

  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    ThisItem is because my example was showing a Gallery. You will need to refer to the record.

     

    e.g. First(ListName).Column will get the Column for the first record, and that can be put in the Visibility property of your image. You don't need to specify true or false as a Yes/No column returns true or false.

  • ErikM9 Profile Picture
    163 on at

    Awesome. Thank you.

    I don't understand why I need to use the operation First?

    Also, I did not try placing the ListName in brackets followed by the column.

     

    So many different rules...

  • charlessexton Profile Picture
    11 Super User 2024 Season 1 on at

    A list is a group of records/items. You need to specify which of those records should be looked at for the Yes/No column.

     

    The brackets are needed when you use a function. In my example above, the function is called First(). It retrieves the first record in a data source. You can find a list of all of the available functions here: https://learn.microsoft.com/en-us/power-platform/power-fx/formula-reference-overview

  • ErikM9 Profile Picture
    163 on at

    Hello,

    I thought the solution from charlessexton was correct, but it is not responsive to when the column is not true.

    The "ThisItem" function is not recognized. Name is invalid?

    I feel like the key is in the message say that the data type is a Table. This reminds of a situation I ran into on the past. I just can't remember what it was that I did. 

  • jfeghali Profile Picture
    68 on at

    Could you provide us with screenshots of your app, to better understand the structure?

    I think we are talking past each other because your problem might have been misunderstood.

  • Verified answer
    ErikM9 Profile Picture
    163 on at

    Solved!

    I knew the issue was going to be silly.

    The presented data is part of a collection that is executed on the OnStart.

    I also referenced the yes/no column from the selected record in the gallery.

    Therefore, the function is: Gallery1.Selected.Color_chart and I initiated OnStart to refresh the collection.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard