Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Choice fields not updating if choice value removed

(0) ShareShare
ReportReport
Posted on by 148

Hi

I have an app with 4 choice fields writing back to a sharepoint list. If a user selects any value within any of the choice lists and submit form, the values are stored in sharepoint, similarly if they are updated with other choice values. All good.

 

However all my choice fields behave in same way. If the user removes the choice value all together (returns the field to blank) and submit the form, the value previously written is retained. 

 

this is a sample of the choice lists i have created in sharepoint for this app

cheezy_0-1629788961581.png

 

 

this is what happens

 

cheezy_1-1629789373044.png

 

thanks

 

Categories:
  • cheezy Profile Picture
    148 on at
    Re: Choice fields not updating if choice value removed

    in the end i have changed my combo boxes to dropdowns and added a "-" value - that seems to do the trick.

     

  • KvB1 Profile Picture
    1,596 on at
    Re: Choice fields not updating if choice value removed

    KvB1_0-1629794048950.png

    Looks like the blank option isnt part of the Items property of your combobox. If your default is set to the value of the column, it won't be able to find that value in the items in your combobox.

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at
    Re: Choice fields not updating if choice value removed

    Hi @cheezy ,

    Could you please show the on change property of the combo box and also if you could try adding a label and printing the value of the comboBox in it to check when you remove the item what happens with combobox selected item. 

  • cheezy Profile Picture
    148 on at
    Re: Choice fields not updating if choice value removed

    sorry they are combo boxes.

    the form is submitted via the standard : SubmitForm(ContentForm1)

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at
    Re: Choice fields not updating if choice value removed

    Hi @cheezy ,

     

    Just to be sure is it dropdown or ComboBox. Could you please show the Patch method used for patching this value ?

     

     

  • cheezy Profile Picture
    148 on at
    Re: Choice fields not updating if choice value removed

    If i submit with any choice in the dropdown  list then the value updates ok in sharepoint list. I can go back and change this value and it also updates ok.

     

    It is just when the value is removed entirely (so blank value) , this doent get updated.

     

    Reset = false

    Default property has no value.

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at
    Re: Choice fields not updating if choice value removed

    Hi @cheezy ,

     

    After submitting is the value added in the backend also ? 

    If so would you please share the onChange property of the dropdown. 

     

    After submitting if value is not added into the database but showing in the dropdown value than it must be because of Reset and Default property. If this is the case would you please share your Reset and Default property of the dropdown ? 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard