Hello,
I have two fields, "Reviewer Sign Off" and "Reviewer Timestamp".
Reviewer Sign off - Boolean Switch
Reviewer Timestamp - Date and time
What I'm trying to do is, when Reviewer sign off is switched to true, capture the date and time in Reviewer timestamp field.
I tried the below but it is not working.
For Reviewer Sign off, OnChange property, If('Reviewer Sign Off_DataCard1'=true, Set('Reviewer Timestamp_DataCard1', Now()))
But, this is not working and I'm getting an error in the formula.
Solved! Go to Solution.
Use a textinput box and set its Default to a context variable, in the example "datetime". To delete it set the toggle OnUncheck property to UpdateContext({datetime: Blank()}). DatePickers don't show the time and date, only the date. To show more than the date see https://powerusers.microsoft.com/t5/Building-Power-Apps/Date-Time-Picker-Missing-Time/td-p/49940
Use a textinput box and set its Default to a context variable, in the example "datetime". To delete it set the toggle OnUncheck property to UpdateContext({datetime: Blank()}). DatePickers don't show the time and date, only the date. To show more than the date see https://powerusers.microsoft.com/t5/Building-Power-Apps/Date-Time-Picker-Missing-Time/td-p/49940
thank you for the prompt response, this worked...
@Drrickryp I just noticed that, the now() value keeps on changing. I do not want it to change continuously. I only want the value to be updated with the current date and time when the Boolean switch is toggled to True, not update to current date and time every time I open the form. How do I make this constant?