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 / Default values on drop...
Power Apps
Answered

Default values on drop down from a variable (record)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all

 

Have an urgent and very enigmatic issue: 

 

  • On a screen alpha I have a datatable connected to a Sharepoint list 0 and a button "Edit". OnSelect on button has "Set(varSelectedItem, datatable.Selected)". 
  • On a screen beta I have a number (e.g. 5) of dropdown lists controls each inside custom card on an edit form which is connected to the list 0. Items property for each of the dropdown list is different and pulls data from different Sharepoint lists.
  • Default property of each of drop down lists is set as varSelectedItem.<appropriate field name the same as in the list 0>. Concequently, since the variable contains record from the same list 0 which is actually filled using the edit form default values correspond possible choices.

Problem:

 

  1. Go to screen alpha, select record in data table, press the button, go to the screen beta
  2. Part of dropdown lists get default values filled in, part - not (e.g. 3 of 5 have default value)
  3. Go back to screen alpha, select the same or another record in the data table, press the button, go to the screen beta.
  4. Some of the fields which have not had default value now have it. But not all - e.g. 4 of 5 have default value.
  5. Go back to screen alpha, select the same or another record in the data table, press the button, go to the screen beta.
  6. Now all dropdown list have default values.

Initially I thought that variable is not assigned fully (or whatever else), But I've created a label where text is varSelectedItem.<appropriate field name> of one of dropdown lists which do not have default values in step 2 - and label shows expected text normally. 

 

 

Thx in advance for any help! 

 

UPDATE: workaround - putting 3 ResetForm on visible on the beta screen.

UPDATE2: even better workaround - 2 timer controls with autostart and consequent ResetForm with 1 sec interval.

Categories:
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Glad to know that you have solved your issue and thanks for sharing your workaround here!

     

    Regards,

    Mona

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard