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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue with Saving Auto...
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"}]});;
 
 
 
 
 
 
Categories:
  • Suggested answer
    Mehmet_Powerapps Profile Picture
    26 on at
    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
    789 Moderator on at
    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,914 Moderator on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard