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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard