Hi @Bash--
Unfortunately, We can't use the timer since timer data will be lost once the session ends or closed the application. The right design is to store it in Data Source.
For Example, Once the user pressed the button
UserEmail DateTimePressed
Bash@mail.com 02/17/2022 17:50 PM
Stalin@mail.com 02/16/2022 10:00 AM
When the form Loads Set the display mode of the button to
With({item: LookUp(DataSource, UserEmail = User().Email, DateTimePressed)},
If(IsBlank(item) || DateDiff(Now(),item, Days) > 30, DisplayMode.Edit, DisplayMode.Disabled)
)
Thanks, Stalin
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos