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 Combobox Va...
Power Apps
Answered

Issue with Combobox Value Erasing in SP List/Custom Form Upon Editing

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I am experiencing an unusual behavior in an SP custom form when using comboboxes. When I modify another column in edit mode and then save, the default value in the SP list column, associated with the combobox, gets erased and changes to blank.

 

I’ve built a SharePoint list/custom form. It has two columns: ‘Name’ and ‘MultipleChoice’ (with options: choice 1, choice 2, choice 3).

 

Scenario 1:

I modified the Name Datacard to create a dropdown (ddName) which is associated with a different data source. The settings are:

 

Items = ‘EmployeeList’ with Value set to ‘Title’

Default = Parent.Default

Datacard Update: ‘ddName.Selected.Title’.

 

This configuration works perfectly when I enter new records, edit records, and save records.

 

Scenario 2:

Later, I modified the same Datacard: I removed the dropdown and replaced it with a combobox (cbName), associated with the same data source (EmployeeList). The settings for this are:

 

Items = ‘EmployeeList’ with Field primary text set to ‘Title’

DefaultSelectedItems = Table({Value: Parent.Default})   or {Value: Parent.Default}

Datacard Update: ‘cbName.Selected.Title’.

 

When I create a new record, everything works as expected. However, when I edit a record and change the 'MultipleChoice' option  then save, the 'Name' value is erased and appears as blank in the SP list.

 

Scenario: 3

As a workaround, when I set the data card items to Distinct(EmployeeList, Title) and change the Datacard Update to cbName.Selected.Value, the issue disappears, and the 'Name' value doesn’t get replaced with blank upon editing.

 

Items = Distinct(EmployeeList, Title)

DefaultSelectedItems = Table({Value: Parent.Default})   or {Value: Parent.Default}

Datacard Update: ‘cbName.Selected.Value’.

 

Have I overlooked something? Why doesn't scenario: 2 work properly?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @grizzlyhoges ,

     

     

    It should be something wrong with the DefaultSelectedItems property. Could you please show me what  â€˜EmployeeList’ with Field primary text set to ‘Title’ is? 

    vbofengmsft_0-1693533645490.png

     

    Best Regards,

    Bof

     

  • grizzlyhoges Profile Picture
    11 on at

    Items for EmployeeList

    grizzlyhoges_1-1693534627278.png

    DefaultSelectedItems

    grizzlyhoges_2-1693534662751.png

     

    SP EmployeeList 

    grizzlyhoges_3-1693534818261.png

     

     

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @grizzlyhoges ,

     

    Please try:

     

    Items:  EmployeeList

    DefaultSelectedItems : LookUp(EmployeeList, Title=Parent.Default)

    Datacard Update: cbName.Selected.Title

     

    Best Regards,

    Bof

  • grizzlyhoges Profile Picture
    11 on at

    ok Bof, thanks for that, it is much appreciated.

     

    Is there a chance you could help me understand where I went wrong? Why I had to use a filter instead?

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @grizzlyhoges ,

     

    Cause the data schema of ​​the default option must match the schema of ​​items.

     

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard