I have a SharePoint list as my data source. I am trying to have it so that if the person, enters a new record or updates an existing record, selects “Free” from a list in the R-Payment-Method field (this is a choice field), that it then sets:
- the R-Cost Center/GL Number field to “NA”
- the R-Ad-Posting-Cost field to 0.00
- the Billing Status field to “Free” (this is choice field)
If something else is selected in the R-Payment-Method field then it should allow the user to select/enter other things in the fields. I keep getting a Network error when using patch function.
I have been trying to set the R-Payment-Method field’s OnChange property to the code below:
Patch(
'Demo Ad Log', Defaults('Demo Ad Log'),
If(
DataCardValue45.Selected.Value = "Free",
{
'R-Cost Center/GL Number': "NA",
'R-Ad-Posting-Cost': "0.00",
'Billing-Status': {Value: "Free"}
}
)
)
What am I doing wrong here?
Thanks
