This is how it should look, but when i add something into the first line and hit the plus to add another item the new item is no longer yellow


Even though there is nothing in there it thinks there is.
This is OnSelect of the plus button
Collect(colListItems,{intID: GUID()});Defaults(colListItems)
The top half is a form and goes to one list, the bottom half is a gallery and goes to a seperate list but ties to the master ID of the first list. colListItems is the collection from the gallery. FIN-DETAILS-OSR is the sub list that ties to the main.
Here is the OnSuccess of submitting the form:
Collect(
ValidRows,
{RowNo: ""}
);
Clear(ValidRows);
ForAll(
Gallery2.AllItems,
If(
!IsBlank(TextInputPurchaseItem.Text) And !IsBlank(TextInputQty.Text) And !IsBlank(DropdownUOM.Selected) And !IsBlank(TextInputLineDesc.Text) And !IsBlank(TextInputVendor.Text) And (TextInputPricePer.Text <> "0"),
Patch(
'FIN-DETAILS-OSR',
Defaults('FIN-DETAILS-OSR'),
{
MasterID: OSRForm1.LastSubmit.ID,
Title: TextInputPurchaseItem.Text,
Quantity: Value(TextInputQty.Text),
UoM: DropdownUOM.Selected,
ItemDescription: TextInputLineDesc.Text,
PricePerUOM: Value(TextInputPricePer.Text),
Vendor: TextInputVendor.Text,
URL: TextInputURL.Text,
TotalAmount: Value(TotalAmountLine.Text),
intID: TextInputintID.Text
}
);
Collect(
ValidRows,
{RowNo: Text(intID)}
)
));
If(
CountRows(ValidRows) <> CountRows(Gallery2.AllItems), NewForm(OSRForm1) And
Notify(
"Some of your data has been submitted successfully! Please re-verify yellow highlighted rows; as it contains invalid input.",
NotificationType.Information
),
Notify(
"All rows have been submitted successfully!",
NotificationType.Success
)
);
RemoveIf(
colListItems,
intID in ValidRows
)