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 Pages / Pre populate lookup fi...
Power Pages
Answered

Pre populate lookup field from previous step in multistep form power pages

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone, 

 

I have a two step multistep form. I create a contact on the first step, and when I go to the second step, I want the primary contact section to be filled with the contact I created. 

 

Screenshot 2024-04-30 162152.png

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,491 Super User 2026 Season 1 on at

    If the contact is the Currently logged in user you could use a Metadata record on the Step in question (use the Portal/Power Pages Management app to configure metadata records).

     

    If the contact is not the currently logged in user and you are creating it on a previous step then.....

    I'll explain how to set it up, but the prefill may not work (maybe a bug at the moment).

    • Use the Portal/Power Pages Management app
    • Open your Multistep form definition and then open the Step in question
    • click the "Associated Table Reference Tab"
    • set Table Reference On Save to Yes
    • for Table select contact
    • for Relationship Name select account_primary_contact

    At this point you hit the first bug, if the dropdown for "Target Lookup Attribute Logical Name" is disabled then you will need to populate the rest of the mandatory fields, save, and then refresh the page to enable the dropdown.

    When the "Target Lookup Attribute Logical Name" is enabled select Primary Contact

     

    Other fields to be populated

    • Tick the box for "Populate Lookup Field" - this checkbox is what should prepopulate the field on the Step
    • for Source Type select Previous Step
    • for Reference Entity Step chose the Step where you defined the Contact record

     

    That should be setup that is required, however when I tried it just now it is not pre-populating the field on the Step, but it is populating it as part of the save - so at the moment there may be a bug with the pre-population in the multistep.

     

    Fubar_0-1714527024581.png

     

  • Emine Bakir Profile Picture
    4 on at

    Hi @Fubar ,

     

    Thank you very much for this message. I had already tried it before opening this topic. Yes, it saves the record, but in the second step, the lookup area(primary contact) is empty. Do you have any other solution for this ?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 52

#2
Valantis Profile Picture

Valantis 46

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard