Hi there.
I am new to canvas apps, and have this currently in my OnSelect property for a button.
I need to add to it to start a timer control on the same button click. So I have put the Start property of the timer to a variable called timerStart, and then I tried to add (in the true bit of the If statement), the code of Set(timerStart, true) but a whole host of errors came up. How can I set this variable to true, or otherwise start the timer control on the OnSelect, but only if the If statement = true?
Thanks
LM
If(
IsBlank(
LookUp(
Drivers,
'Driver Email' = User().Email &&
'Check In Date/Time' >= DateAdd(Today(), -1) &&
'Check In Date/Time' < DateValue(Today(), "dd/mm/yyyy")
)
),
Patch(
Drivers,
Defaults(Drivers),
{Name: User().FullName},
{'Driver Email': User().Email},
{'Check In Date/Time': Now()}
),
Notify("You have already checked-in Today. Select "&Char(34)&"Trips"&Char(34)&"from the bottom menu to resume.",NotificationType.Information)
)