I have a ridiculous app requirement that's causing an issue.
I have a dozen or so combobox fields that are derived from a SharePoint Choice column that have a prefix. Depending on the results of a different field on a different form, different choices will appear in these fields. I have custom collections for these fields that load OnAppStart. They have a "Value" field and a "Display" field.
For example the choices available in SharePoint might be:
Reco::Blue
New::Black
Both::Green
So the custom collection is (in JSON):
Colors:
[
{
Display:"Blue",
Value:"Reco::Blue"
}
],
[
{
Display:"Black",
Value:"New::Black"
}
],
[
{
Display:"Green",
Value:"Both::Green"
}
]
and my Patch function uses this:
{
Color:
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value:ColorDropDown.Selected.Value
}
}
All of this works. It properly saves the correct data into SharePoint.
The problem is thus:
When I go back into edit or view the data using the form instead of showing me the correct "Display" field data, it brings up the "Value" of what's stored in the field.
Does anyone know how I can correct this so that it figures out what the right "Display" field should be?