Hi , I have a canvas form in which I have a toggle control ,whenever the toggle is clicked or it’s value is true , I have to set date picker field as current date and that date field is view only field.
And I have used submitform function on Submit Button.
Basically filling all data card value and accepting term and condition (via toggle control) and Submitting the form data into SP list .
I have set defaultdate property of date picker as
If(DataCardValueAgree.Value,vardate,Parent.Default) where vardate is local variable, value set to Now(),
But now all my records shows today date and not the actual date and sharepoint list has correct dates.