Below is the setup for my variable. It is placed in the OnSelect of a combo box called "chsHorizRequire" drop down
Set(varHorizontalDatum,(If(
chsHorizRequire.Selected.Value = "City Datum",
"CityDatumDescr",
If(
chsHorizRequire.Selected.Value = "Previous Project Coordinates",
"PreviousProjectCoordinatesDescr",
If(
chsHorizRequire.Selected.Value = "Other",
"OtherHorizontalDatumDescr",
""
)
)
)));
Below is my patch funciton
Patch(SurveyRequest_DB, Defaults(SurveyRequest_DB), { varHorizontalDatum: chsHorizRequire.Selected } )
Placing the "varHorizontalDatum" is throwing the error in the patch function.