Hi @ATUFAILHAASAN ,
If this is in the current session, start the timer with a Variable
UpdateContext({varTimer: true})
then OnTimerEnd
UpdateContext({varTimer: false})
then the DisplayMode
If(
varTimer,
DisplayMode.Disabled,
DisplayMode.Edit
)
but this only applies for the current user if they keep the app open. If you are wanting other users (or the current user if they close and open the app not to be able to do this, on the DefaultMode of the Form - you will have to insert the Form Item where indicated
If(
DateDiff(
FormItemHere.Modified,
Now(),
Hours
) < 1,
FormMode.View,
FormMode.Edit
)
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.
MVP (Business Applications) Visit my blog Practical Power Apps