cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

pop up by time condition

Hi all

 

Is it possible to show a pop up, according to the time of day?

the goal is to show a pop up only between 17:00 and 7:00

 

thanks for the possible help

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

@javierz 

Sure... design your PopUp and then set its components' visible property to:

   !(curHour>=7 && curHour<=17)

 

EDIT: (Last post excluded the timer, which you need)

Also, add a Timer control and set its properties to AutoRepeat and Autostart every Minute (duration).  In the OnTimerEnd action:

   UpdateContext({curHour:Hour(Now())})

 

Hope that helps you some.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

@javierz 

Sure... design your PopUp and then set its components' visible property to:

   !(curHour>=7 && curHour<=17)

 

EDIT: (Last post excluded the timer, which you need)

Also, add a Timer control and set its properties to AutoRepeat and Autostart every Minute (duration).  In the OnTimerEnd action:

   UpdateContext({curHour:Hour(Now())})

 

Hope that helps you some.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Highlighted

works

Thank you

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,156)