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 / Button visible based o...
Power Apps
Answered

Button visible based on datacard value

(0) ShareShare
ReportReport
Posted on by 59

If the data card value is 0 then it will not be visible. Otherwise its visible.

 

In the visible property of the button I have

 

If(Datacardvalue17.text = 0)

 

What am I missing? Thanks in advance.

 

Categories:
  • eka24 Profile Picture
    20,925 on at
    Try
    Value(Datacardvalue17.text) <>0)
    Or
    Value(Datacardvalue17.text) =0)

    If the Datacardvalue is number then
    Datacardvalue17.text<>0
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @JukeNuke 

    No IF statement is required here.

     

    Value(Datacardvalue17.Text)<>0

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    As @mdevaney points out, the fix is to get both sides of the equation into the same data type.  You are testing the .text property, which will be a string.  But you are testing it against an integer.  Either convert the string to an integer as @mdevaney does or use your original code but test it against "0" instead of 0.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard