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 Apps
Answered

Hide a text box

(0) ShareShare
ReportReport
Posted on by 156

Hello Community,

 

How to hide a text label, and only show it if the status is cancelled?

 

Thank you!

Categories:
I have the same question (0)
  • Samuel-Zhou Profile Picture
    393 on at

    @JonathanL82 Set the formula in the visible attribute of the text label

    status = cancelled

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @JonathanL82 ,

     

    Where do you get cancelled status?

    Assuming that Var stands for status, you can set formula on Visible of text label to check if it equals "cancelled":

    If(Var="cancelled",false,true)

     

    Best regards,

    Rimmon

  • JL82 Profile Picture
    156 on at

    @v-mengmli-msft status is a choice column from sharepoint and cancelled is one of the choices. 

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @JonathanL82 ,

     

    Does text label in a gallery?

    If Items of gallery is SP list and Status column is single selection, please try this:

    Visible of Label:

    If(ThisItem.Status.Value="cancelled",false,true)

     

  • Verified answer
    JL82 Profile Picture
    156 on at

    @v-mengmli-msft thank you! thisitem.status.value = "Cancelled" this one worked!

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @JonathanL82 ,

     

    Glad to hear from you.

    If my answer helps you, please accept it as a solution.😀

     

    Thanks.

    Rimmon

     

     

  • JL82 Profile Picture
    156 on at

    @v-mengmli-msft noted. i just did 🙂

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard