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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Choice fields not upda...
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:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    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.

  • cheezy Profile Picture
    148 on at

    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

    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

    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

    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. 

  • KvB1 Profile Picture
    1,596 on at

    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.

  • cheezy Profile Picture
    148 on at

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

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard