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 / Hide button on a speci...
Power Apps
Answered

Hide button on a specific value of a specifc text input field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I've seen lots of posts for similar mainly if a column is blank or there based on a specific user, but nothing based on a certain value of a text field.

 

My goal is to hide a button if my COIStatus field value is Awaiting Approval, I tried the following in the visible column but of course it couldn't be that easy 

 

If(COIStatus_DataCard1.Value="Awaiting Review"),true,false

 

but I receive the error

DWTKBrook_0-1668011672411.png

 

I'm not clear what this error is telling me or how I can fix this. Any ideas on where I when wrong?

 

Thank you,

DWTKBrook

 

 

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

    Hi @Anonymous ,

     

    Just put this in Visible:

     

    COIStatus_DataCard1.Value="Awaiting Review"

     

    Greetings,

    Marc

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    As @Waegemma  says, there is never a need for an If() in a visible property.  The formula reduces either true or false.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Waegemma, Thank you for your suggestion.

     

    I tried as you suggested but I'm still getting an error;

    DWTKBrook_0-1668016466175.png

    Error;

    DWTKBrook_1-1668016549401.png

    I really don't understand this error.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    It's telling you COIStatus_DataCard1.Value is not correct.  Use Intellesense to see what choices you have when you type in: COIStatus_DataCard1.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Drrickryp  @Waegemma Just tried again with a couple modifications to my original syntax, and the only way it works is with an If() (images below;

     Using: If(DataCardValue1.Text = "Awaiting Line Manager Review", true, false)

     

    Empty COIStatus, no button

    Just tried again with a couple modifications to my original syntax, and the only way it works is with an If() (images below;

     Using If(DataCardValue1.Text = "Awaiting Line Manager Review", true, false)

    DWTKBrook_0-1668019439938.png

     

    COIStatus with text "Awaiting Line Manager Review"

    DWTKBrook_1-1668019507778.png

     

    Thank you for your help! Cheers1

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    My guess is that if the visible property is simply DataCardValue1.Text =  "Awaiting Line Manager Review"

    it will also work since this resolves to either true or false by itself.  However, the formula you came up with is equally valid.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard