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 :
Power Apps - Building Power Apps
Answered

Issue with Saving Automatically Assigned Values in ComboBox on PowerApps

(0) ShareShare
ReportReport
Posted on by 27
Hello,
I’m facing an issue and would like some help. In my app, I have a field called dropdownClassification, and I want some fields to be automatically filled when the "100%" option is selected.
 
In the form, I’m using ComboBox fields that retrieve options from a SharePoint list.
I created a variable called procedimentos and assigned it to the DefaultSelectedItems property of the ComboBox. Initially, everything works as expected: when I select the "100%" option in the dropdownClassification, the ComboBox is automatically filled with the defined value.
 
The issue happens when saving the data. The values automatically assigned to the ComboBox are not being saved in the record, even though the spelling matches exactly with the SharePoint list used by the ComboBox. The app only saves the record if the option is selected manually in the ComboBox.
 
Below, I’m sharing the code I used for dropdownClassification and the ComboBox.
How can I make the automatically assigned values in the ComboBox save correctly?
 
Thank you for your help!
 
 
IF(
DropdownClassificatiom.Selected.'Classification'= "100%";
 
UpdateContext({ quantidade: 0; qualidade:10;
procedimentos: [{Value:" N/A"}]});;
 
 
 
 
 
 
I have the same question (0)
  • Suggested answer
    Mehmet_Powerapps Profile Picture
    26 on at
    Issue with Saving Automatically Assigned Values in ComboBox on PowerApps
    Hello @,
    i think, you can solve your problem with this way. 
    Please use Set() Formula instead of UpdateContext Formula. I made some tests. Everything is ok. I created a variable named varSelectedItems and i used this variable in these fields. 
     
    Button OnSelect :   Set(varSelectedItems,["Value1","Value2"])
     
     
     
    1. Default field of DataCard (DataCard which Combobox inside it)
    2. DefaultSelectedItems field of Combobox
     
     
  • Suggested answer
    abc 123 Profile Picture
    784 Moderator on at
    Issue with Saving Automatically Assigned Values in ComboBox on PowerApps
    procedimentos: [{Value:" N/A"}]});;
     
    If this is a lookup column, then you may need an Id:
    procedimentos: [{Id: {Algunos}, Value:" N/A"}]});;
  • Verified answer
    ronaldwalcott Profile Picture
    3,827 Super User 2025 Season 2 on at
    Issue with Saving Automatically Assigned Values in ComboBox on PowerApps
    Assuming that the combox represents a Lookup rather than Choices should be something more like
     
    IF(
    DropdownClassificatiom.Selected.'Classification'= "100%";
     
    UpdateContext({ quantidade: 0; qualidade:10;
    procedimentos: Lookup(theSharepointList, theColumnName = "N/A")});
     
    If it is a Choices and the code is direct copy of what you implemented then you may have an extra space in [{Value:" N/A"}] . There is a space before the N

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard