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 / Combobox reset issue
Power Apps
Answered

Combobox reset issue

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

I have a combo box which is in the form and the form is connected to SharePoint data source. We have a code on On Select property of combo box and it fetches data from share point list. Below is the code.

 

Set(initiatedata,Last(Filter(AssessmentMaster,Self.Selected.Value = PG.Value && Country.Value = Label12.Text && Year =DataCardValue11.Text )));

 

When  select value is combo box and if the Value fetches data from share point data source it is working fine but if there is no value from share point data source it gets reset and no value is selected in combo box. Below is the gif that shows the issue.
How can i solve this?

recording.gif

Categories:
  • Verified answer
    proxyprochy Profile Picture
    92 on at

    Hello.

     

    Check the PG ComboBox's Default value. It looks like it always gets the last record of your Sharepoint List, which doesn't seem to be found - so it just inserts blank.

     

    DIY soulution for this might be setting the last checked item to be default;

     

    PG_ComboBox.OnChange = UpdateContext({lastSelectedValue: PG_ComboBox.Selected.Value})

    and

    PG_ComboBox.DefaultSelectedItems = lastSelectedValue

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

    Hi @Jayant_2203 ,

    What's the Items property of your form? Do you want to show a blank form(Defaults(listname)) or show one of the other records when selected value is not found in your list?

    Besides, what's the DefaultSelectedItems property of your combo box?

    Best regards,

    Allen

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard