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 / Unable to Save Combobo...
Power Apps
Answered

Unable to Save Combobox Value in SharePoint List

(0) ShareShare
ReportReport
Posted on by 35
Hello PowerApps Experts,
 
I have an edit form. I am using the form for making updates in the SharePoint list. In that form I have a multiselect combo box that is a Single line text column in SharePoint list. Combo box values are coming from another SharePoint list column (single line of text) . I am using following for Combo box properties in edit form:
 
Edit Form Database: List B
 
Items: List A. ListAColumnName
 
Default selectedItems: Split(ThisItem.ListBColumnName,",")
 
Datacard Update: Concat(comboboxname.SelectedItems,ListBColumnName, ",")
 
Datacard Default: ThisItem.ListBColumnName
 
Everything is working fine when there is no existing value in the column and I select values for combo box and make update to the list. However, when I make edits in the same list item again, it pulls previously submitted comma seperated SharePoint list column value in the combo box. But for second time edit if I don't make any edit in the combo box options and save the form. In SharePoint list column, value is erased and shows',' only, even though on form it was showing values in combo box. 
 
Any ideas that can help in resolving the problem.
 
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at
    If you don't make any edits in the list then you need to save the defaults back in the update.  So add an IF() to the update to send back the default string if nothing is chosen.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • MS-19111917-0 Profile Picture
    35 on at
    @Pstork1 Could you please help me with if condition for default? Since my form will be used only for update not for creating new item. I appreciate your support.
  • Verified answer
    MParikh Profile Picture
    322 Super User 2025 Season 2 on at

    You need to ensure the Update property always has a reliable reference to the existing values even when the user doesn't interact with the ComboBox.
    1. Set DefaultSelectedItems:

    ​​​​​​​ForAll(
    Split(ThisItem.ListBColumnName, ","),
    {
    Value: Trim(Result)
    }
    )
    2. Set Items:
    Distinct(ListA, ListAColumnName)
    Make sure ListAColumnName returns values as { Value: "text" } structure to match ComboBox items.
     
    3. Set Update (DataCard's Update):
    If(
    IsEmpty(comboboxname.SelectedItems),
    ThisItem.ListBColumnName,
    Concat(comboboxname.SelectedItems, Value, ",")
    )
    This condition ensures that if the user does not change anything in the ComboBox, it preserves the original value.
  • MS-19111917-0 Profile Picture
    35 on at
    @ Thank you so much for resolving my combo box issue. 
    Really appreciate the help.

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard