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 based on a...
Power Apps
Answered

Hide button based on a date in another field

(0) ShareShare
ReportReport
Posted on by 121

I have a button which updates my app to the date and time now. Once the button is pressed I want it to be hidden for 28 days. 

The date gets stored in a field within a sharepoint list.

 

The datacard is called MRSDatacard and the field value is DataCardValue39.

 

I've looked at and tried various option within the visible section of the button but am unable to link it to the last updated date.

 

Cheers

Categories:
I have the same question (0)
  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    If you just need to base it off of the Date displayed in DataCardValue39, you could set the button's visibility to something along the lines of:

     

    DateDiff(DataCardValue39.SelectedDate, Today()) > 28

     

    Please note, I'm assuming that DataCardValue39 is a date picker here.

     

    If you mean that you want it compared to the last date in the SP list's records, try something like:

     

    DateDiff(Last(*YourSPList).*DateColumn*, Today()) > 28

     

     

    Hope this helps!

  • Markswan20 Profile Picture
    121 on at

    As easy as that thank you 

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard