@kinghnvn ,
Different question, but you would need a timer control started at screen OnVisible then set a Variable at OnTimerEnd
UpdateContext({varHide:true})
then your button DisplayMode
If(
!varHide &&
Text('Checkout From',"mm/dd/yyyy") = Text(Today(),"mm/dd/yyyy") &&
DateDiff(
'Checkout From'
Now(),
Hours
) > 1,
DisplayMode.Edit,
DisplayMode.Disabled
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps