web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : mmlV3FoLmnz/2QITwItycf
Power Apps - Building Power Apps
Answered

I have a checkbox and I want the user to append only unselected options and not delete selected options. What should I do?

Like (0) ShareShare
ReportReport
Posted on 7 Mar 2022 05:17:56 by 22

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.

1.png

2.png

I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 09 Mar 2022 at 05:24:24
    Re: I have a checkbox and I want the user to append only unselected options and not delete selected options. What should I do?

    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
     )
    )

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473