Two options are already saved in the List. Can not delete it, can only append other options, how can I ensure that the submitted data is correct.
Announcements
Two options are already saved in the List. Can not delete it, can only append other options, how can I ensure that the submitted data is correct.
Hi @snail520,
Do you want to update the existing choice field values by appending a new choice?
Could you please share a bit more about your scenario?
How you set the Item property of the Form? Is there a Gallery for you to select a record to edit?
I assume that you have a Gallery and you set the Form Item property as Gallery.Selected.
I think you could directly edit this record and select the unselected choice within the Combo Box. If you want to ensure your data is successfully submitted, you should check as below.
1). Set the OnVisible property of the Form screen as below:
ClearCollect(colRecord,Gallery.Selected.MultiChoice)//Here collects the original items within the Choice column before your update.
2). Set the OnChange property of the Combo Box as below:
ClearCollect(colChoice,DataCardValue30.SelectedItems)//Here collets the selected choices once the ComboBox selected items change.
3). Set the OnSuccess property as below:
If(
Concat(
Filter(
colChoice,
!(Value in colRecord.Value)
),
Value,
","
) = Last(DataCardValue30.SelectedItems).Value,
Notify(
"Successfully saved!",
NotificationType.Success
)
)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1