Announcements
Hi
I have tried Time Now(). But it is not working automatically
Request you help me to achieve this.
Thanks & Regards
hi @knsrinath
try this in the Display mode of your button.
DisplayMode =
With( {_eval: Hour(Now())}, If( (_eval >= 6 && _eval <= 9) || (_eval >= 16 && _eval <= 18), DisplayMode.Edit, DisplayMode.Disabled ) )
R
Hi @rubin_boer
When I'm editing the code it is working. But In Playmode it is not working.
hi @knsrinath at what interval would you like to do the check, minute second etc. you can have the timer duration at 60000 have the OnTimerEnd = UpdateContext({_eval: Hour(Now())}) and have the if statement in the display mode
If( (_eval >= 6 && _eval <= 9) || (_eval >= 16 && _eval <= 18), DisplayMode.Edit, DisplayMode.Disabled )
this will check the status every minute.
Will this screen be open all the time?
I have created a variable on the Button Display 'varStop' & OnTimerEnd
Set(varStop, With( {_eval: Minute(Now())}, If( (_eval >= 8 && _eval <= 10) || (_eval >= 52 && _eval <= 55), DisplayMode.Edit, DisplayMode.Disabled ) ))
It is working fine.
Thanks for your support.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 352 Most Valuable Professional
11manish 192
Valantis 128