I've been struggling with a default date and time selector and seems i have to select the value or it will just set itself to "00"
My default value for the hour is if its a new form item:
If(_NewMode, Text(Hour(_CopiedStartTime),"00"),Text(Hour(Parent.Default),"00"))
I have this on the new form item button
NewForm(Form2);
UpdateContext({_NewMode: true});
UpdateContext({_CopiedStartTime: RentalItemsGallery.Selected.Start});
UpdateContext({_CopiedFinishTime: RentalItemsGallery.Selected.Finish});
And on the Update for the datacard:
TRDate.SelectedDate + Time(Value(HourValue3.Selected.Value), Value(MinuteValue3.Selected.Value), 0)
Where TRDate.SelectedDate is a value from another form on the page
The default actually shows the correct value but when submitted it returns as "00"
what am i doing wrong here?

Report
All responses (
Answers (