More information for my case:
The input field is in a gallery. Data from the collection is displayed in this input field. By patching on clicking an icon, I add a line to the collection, which causes another empty input field to appear in the gallery. Another time is recorded in this input field. This input field is used for formatting. This means that when I enter a new number, it is formatted from 800 to 8:00 (in the onChange). Your addition does not add another colon, but if I add another field and then add 900 there, the value from before is displayed, i.e. 8:00 instead of 9:00. This is the case for all other fields that I add. The full code I use in the onChange looks like this.
Set(
locVarColon,
Blank()
);
If(
Len(input.Text) > 2 && !(":" in input.Text),
UpdateContext(
{
locVarColon:
If(
Len(input.Text) = 3,
Left(input.Text, 1) & ":" & Right(inpStartzeit.Text, 2),
Left(input.Text, Len(input.Text)-2) & ":" & Right(input.Text, 2)
)
}
);
Reset(input)
);
Patch(
colTime,
LookUp(
colTime,
id = ThisItem.id
),
{
abc_starttime: If(
!IsBlank(locVarColon),
locVarColon,
Self.Text
)
}
);
and the default is: ThisItem.abc_starttime
and the icon to patch a new row:
Patch(colTime, Defaults(colTime), {abc_name:"Time", id:GUID(), abc_date: datDateWhite.SelectedDate});