Hello! I have a submit button at the end of my form that is supposed to update a SharePoint list if certain conditions are not met:
Here as an example of the function:
;If(Conditions1.Text = "false",
Patch(
TestList,
LookUp(
TestList,
Name = UserName.Text
),
{
'Start': Start.Selected.Value,
'Lunch Start': LunchStart.Selected.Value,
'Lunch End': LunchEnd.Selected.Value,
'End': End.Selected.Value,
}
);Set(Updated1, true))
There are 7 different (but similar) sets of conditions that each have a similar function as the one listed above. I know that the patch function on its own works as I have it so certain fields are always patched and they seem to be working fine.
Example:
Patch(TestList,
LookUp(
TestList,
Name = UserName.Text
),
{
'Leave Start': LeaveStart.SelectedDate,
'Leave End': LeaveEnd.SelectedDate,
})
; Set(Updated8, true)
Interestingly, the following patch statement also appears to be working as intended:
;If(AdditionalNotes.HtmlText = "Enter any additional notes here.", Set(UpdatedFinal, true), Patch(TestList,
LookUp(
TestList,
Name = UserName.Text
),
{
'Additional Notes': AdditionalNotes.HtmlText
}
);Set(UpdatedFinal, true))
I honestly have no idea what may be causing this issue. Any solutions would be greatly appreciated. Thank you!