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 / how to set a button to...
Power Apps
Answered

how to set a button to closed and not visible by a date?

(0) ShareShare
ReportReport
Posted on by 1,994

HI

 

I have two button that I want to not display based on SP column closing date.  can anyone advise how to do it.

 

Thank you

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    App.OnStart:

    Set(IsDate,LookUp(ListName,Today() = ClosingDate))

    This will store a record if closing date is equal to today's date.

    Button visible property:

    IsBlank(IsDate)

    OR

    !IsBlank(IsDate)

     

    whatever your requirement is

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @bbsin 

     

    I assume you have a link on each gallery item. We can either visible or disable the link once the date is passed on each gallery item.

     

    Set DisplayMode of the button/link to 

    If(ThisItem.'ClosedDateColumn' < Now(), DisplayMode.Disabled,DisplayMode.Edit)

     

    As mentioned, we can do visible also.

     

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 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard