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 / Set Yes/No column to t...
Power Apps
Suggested Answer

Set Yes/No column to true based on Datacard visible property

(1) ShareShare
ReportReport
Posted on by 140
I have a below field in Powerapps with SharePoint as the backend. I need to set the Yes/No column to true based on the Datacard visible property. I tried below code which includes Self.Visible=true, but it doesn't work. May i know why?
 
DataCard Visible Property
varCurrentTab = "Communications" && With(
    {
        _Data: Filter(
            'DS',
            'Process Type'.Value = Trim(DataCardValue48_2.Selected.Value) && 'Resource Type'.Value = Trim(DataCardValue6_1.Selected.Value)
        )
    },
    LookUp(
        _Data,
        "YouTubeSubscribe" in 'Field to be hidden'.Value,
        'Hide?'
    ) = false || IsBlank(
        LookUp(
            _Data,
            "YouTubeSubscribe" in 'Field to be hidden'.Value
        ).'Hide?'
    )
)
 
DataCard Update Property
DataCardValue66_2.Value&&Self.Visible=true
Toggle Default Property
Parent.Default
 
I have the same question (0)
  • Suggested answer
    oyepanky Profile Picture
    563 on at

    Hi @Poweruser32490,

    The issue is that the Update property doesn't reliably evaluate Self.Visible the way the Visible property does. Also, Self.Visible = true is unnecessary because Visible already returns a Boolean value.

    If you want the SharePoint Yes/No column to reflect the visibility of the DataCard, use the same visibility condition directly in the Update property, for example:

    varCurrentTab = "Communications" &&
    With(
        {
            _Data: Filter(
                'DS',
                'Process Type'.Value = Trim(DataCardValue48_2.Selected.Value) &&
                'Resource Type'.Value = Trim(DataCardValue6_1.Selected.Value)
            )
        },
        LookUp(
            _Data,
            "YouTubeSubscribe" in 'Field to be hidden'.Value,
            'Hide?'
        ) = false ||
        IsBlank(
            LookUp(
                _Data,
                "YouTubeSubscribe" in 'Field to be hidden'.Value
            ).'Hide?'
        )
    )
    

    Or store that expression in a variable and use the variable in both the Visible and Update properties. This avoids duplicating the logic and keeps both properties in sync.
     

    Best Regards,
    Pankaj Jangid (OyePanky)
    Power Platform Developer
    YouTube: https://www.youtube.com/@oyepanky
    Website: https://dialforit.com

  • Suggested answer
    11manish Profile Picture
    3,684 on at
    Avoid using Self.Visible in the Update property. Instead, reuse the same expression used in the Visible property or store it in a variable (such as varShowYouTubeSubscribe) and reference that variable in both places. This is the recommended Power Apps pattern because it improves readability, avoids duplicated logic, and ensures consistent behavior.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard