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 / Autofill (pre-populate...
Power Apps
Unanswered

Autofill (pre-populate) form data from dropdown selection

(0) ShareShare
ReportReport
Posted on by 92

Hi,

 

I have a problem with autofilling (pre-populating) information based on Microsoft Lists record. First, I created a Canvas app in PowerApps. I then created a dropdown and other form attributes. Based on selected value in dropdown, PowerApps form is automatically looking up Microsoft list record and auto fill the other form attributes.

 

 The problem is, when there is only one record in that dropdown, it doesn't work. Even if I click on it, still nothing, it stays empty. Every time I load the app I need to select different value so it starts working. 

 

Any solution for this? 

 

Thanks!!

Categories:
I have the same question (0)
  • PTBBSolutions Profile Picture
    691 on at

    Hi @acolyter ,

     

    Can you please provide some code examples and some screenshots of your set-up to better understand what the issue is?

     

    What is the source of the dropdown?

  • acolyter Profile Picture
    92 on at

    @PTBBSolutions 

     

    Hi, 

     

    thank you for your reply. 

     

    The source is Sharepoint List and the column is a single line text called 'Name'. 

     

    The dropdown has 2 settings - Items is set to: 

     

    Distinct(Filter(Catering, StartDate > Now() And Organizer.Email = User().Email), Name)

     

    On change is set to:

     

    Set(UdalostVar,LookUp(Catering, Name = UdalostDDL.Selected.Result))

     

     

    When there's 2 or more items in the list (so there's 2 or more in the dropdown menu), everything works just fine. When I select the name, it automatically pre-populates other fields. But when there's only 1 record in the dropdown menu, even if I click on that event, nothing happens (the fields that should become pre-populated stay blank).

     

    Thanks!

  • Verified answer
    PTBBSolutions Profile Picture
    691 on at

    @acolyter ,

     

    Have you set-up the AllowEmptySelection of the dropdown to true? If no, if you have only 1 value in the dropdown, it will always be displayed by default and there is no way to change it so you can trigger the OnChange event.

  • acolyter Profile Picture
    92 on at

    Perfect, that works, 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard