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 / Make Button DisplayMod...
Power Apps
Answered

Make Button DisplayMode.Disabled if count > 1

(1) ShareShare
ReportReport
Posted on by 181
Hi.
 
I have an app which collects data that will need to be held for 48 hours after being actioned, then deleted. I have a delete button that appears once the status is marked as 'Complete' however I would like the button to be disabled for the first 24 hours. 
 
I have a text box within the gallery which counts the days since the record, I was thinking I could make the buttons DisplayMode.Disabled when the counter value is <2.
 
What would be the code to achieve this?
 
 
Categories:
I have the same question (0)
  • Verified answer
    Kalel_Lucas Profile Picture
    165 on at
    Hello Angry_Sys_Admin,
     
    Assuming that text box correctly display the date in days since the alteration of the status to "Complete", you can put the following in the "DisplayMode" property od your delete button:
    If(
        Value(Textbox1.Text) >= 1,
        DisplayMode.Edit,
        DisplayMode.Disabled
    )
     
    Hope it helps,
    Kalel

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 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard