cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbsin
Post Prodigy
Post Prodigy

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Community Champion
Community Champion

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.

 

View solution in original post

2 REPLIES 2
zmansuri
Super User
Super User

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

StalinPonnusamy
Community Champion
Community Champion

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.

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,008)