I have a form with two date pickers. I'd like to save it as a global variable after selecting a date in date picker 2. Then, after saving the form, I would like the saved date in the new form to be set as the default value for date picker 1. I tried the following codes in on change for data picker 2:
"Set(ChangedDose; DataCardValue50.SelectedDate)"
and also the following code for the default on date picker 1:
"ChangedDose"
I assigned the save record button to the following code on select:
"SubmitForm(Form1);;Refresh('Data1');;UpdateContext({resetdate: true});;UpdateContext({resetdate: false})"
Reset for both date pickers is set to local variable "resetdate".
Unfortunately, when selecting a date, the global variable is not saved correctly and the blank value is returned with the date type.

Report
All responses (
Answers (