So i have a QR code that puts out a email and then a date, then the email is used to find more data on the user. this all works.
But the date is also given as more of a security reason, when it doesn't match the current date the user shouldn't be able to press the next button to continue the process.
the data this variable puts out is 24-07-2020, i checked this by putting it in a text field and looking at the output.
![]()
![]()

"Datum: " & _gastdatum
i tried adding the code below to the displaymode tag of the button itself,
If(IsToday(DateTimeValue(_gastdatum, "DD-MM-YYYY")),
DisplayMode.Edit,
Disabled
)
But unfortunately, the button stays the same even thought he dates are matching.
If u need any more info please let me know.
Any insight or help would be appreciated, thank you so much.