I am currently working on a form for creating new items in a SharePoint List. On the form there are a couple of DataCards that record the time as text by click on a button. However, once I submit the form and want to start a new form the previous data/time are still visible. While the other data that does not have a button are cleared.
See as example the Door Open

Set Time Button
UpdateContext({DoorOpen: Text(Now(),"hh:mm")});
Card Door Open
If(
EditForm3.Mode=FormMode.New,
DoorOpen,
Parent.Default
)
Submit Button - OnSelect
SubmitForm(EditForm3);
Form - OnSuccess
Set(
varLastRecord,
EditForm3.LastSubmit
);
Office365Outlook.SendEmailV2
("email@email.com",
$"*** Flight Report: {varLastRecord.Flight.Value} {varLastRecord.Date}",
$"Date: {varLastRecord.Date}
</br>Flight: {varLastRecord.Flight.Value}
</br>Stand: {varLastRecord.'Stand'}
</br>Door Open: {varLastRecord.'Door Open'}"
);
ResetForm(EditForm3);
Navigate(Home);
Form OnReset
Set(varLastRecord, Blank())
I am guessing I need to issue something else in addition to just navigating to home and to start a fresh form. What would I need to add in this case?