I have an app where I want to assign the date and time to a field that I will write to a SharePoint List, but I want the date and time when I click the Submit button, not when I start the app. I am using the following function in the "Update" property of a logging field:
Text(DateTimeValue(Now()), "mm/dd/yyyy hh:mm AM/PM")
If I run the app and let it sit for 5 minutes, the date and time saved seems to be when the app started and not when I clicked on the Submit button, which is where I run a "SubmitForm" command.
I then decided to use the following command before the "SubmitForm" function in my Submit button:
DataCardValue3.Text=Text(DateTimeValue(Now()), "mm/dd/yyyy hh:mm AM/PM") & " - Started"
and used the following function in the "Update" property of my DataCard for DataCardValue3:
DataCardValue3.Text
That gives me no value written back to my SharePoint list, which tells me that somehow, when I clicked on the Submit button, the value was not saved.
What do I need to do to get a time stamp for the moment when I submit my form?