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 / Retain submitted value...
Power Apps
Answered

Retain submitted value in combo box after submit (instead of reverting to logged-in user's name)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Thanks in advance for your help! I have a submission screen containing a dropdown that is currently auto-populated with the name of the logged-in user. The user can change the name in the dropdown and then submit using a button, which writes the submitted name into a field in a SharePoint list (e.g. if they are submitting on someone else's behalf). However the DisplayName in the dropdown keeps reverting to the logged-in user's name after clicking the submit button. I tried the steps given at https://powerusers.microsoft.com/t5/Building-Power-Apps/Combo-box-retains-old-value-in-edit-form/m-p/317247#M91202 and have done the following:

  1. For the Submit button's OnSelect property, added " UpdateContext({ResetControl: false}); UpdateContext({ResetControl: true}) " to the existing commands, as follows:
    SubmitForm(RequestMatchForm);UpdateContext({varShow:!varShow});UpdateContext({ResetControl: false});UpdateContext({ResetControl: true})

  2. For the Person's name selection dropdown (combo box):
    Replaced " false " with " ResetControl "

  3. For the screen the control is on:
    Changed OnVisible property from blank to " UpdateContext({ResetControl: true}) "

  4. Also for the screen the control is on:
    Changed OnHidden property from blank to " UpdateContext({ResetControl: false}) "
Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @alygator 

     

    The best approach, IMO, would be to use a variable as the Default of your dropdown/combo.

     

    For example, your app could be setup like this:

     

    App OnStart

    Set(vUser, User().DisplayName)

    Combobox Default

    vUser

     

    Combobox OnChange event

    Set(vUser, ComboBox1.Selected.DisplayName);
    Reset(ComboBox1)

     

    Then, whatever happens with your Submit shouldn't affect the dropdown

  • alygator Profile Picture
    Microsoft Employee on at

    Thank you! 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard