Skip to main content
Community site session details

Community site session details

Session Id : tUBpff1pmUEupmUVE4CMwl
Power Apps - Building Power Apps
Answered

Autofill (pre-populate) form data from dropdown selection

Like (0) ShareShare
ReportReport
Posted on 8 Nov 2021 10:32:09 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:
  • acolyter Profile Picture
    92 on 08 Nov 2021 at 12:16:02
    Re: Autofill (pre-populate) form data from dropdown selection

    Perfect, that works, thank you! 

  • Verified answer
    PTBBSolutions Profile Picture
    691 on 08 Nov 2021 at 11:57:26
    Re: Autofill (pre-populate) form data from dropdown selection

    @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 08 Nov 2021 at 10:57:35
    Re: Autofill (pre-populate) form data from dropdown selection

    @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!

  • PTBBSolutions Profile Picture
    691 on 08 Nov 2021 at 10:49:30
    Re: Autofill (pre-populate) form data from dropdown selection

    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?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete