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 Pages / Pre-populate a Power P...
Power Pages
Unanswered

Pre-populate a Power Pages form using existing data

(0) ShareShare
ReportReport
Posted on by

Hi there, 

 

I have a simple Power Pages website that contains a single form. The form simply inserts "Access Log" records into a table. 

 

I would like to pre-populate a subset of fields on this form (Full Name, Vehicle Registration, Certificate Number, etc) by executing a query. This query will check for previous records created by the user and use the last record added by the user to populate the form. This should allow the user's information to be "remembered" by the application, so they don't have to fill out the entire form each time. This is only for signed-in users.

 

Is this possible in Power Pages?  If so, how can it be achieved? I have tried using Basic Form Metadata and also fluid templates to try adding the functionality without much luck. 

Thanks, 
Jason.

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    Several ways it could be done

    1. Custom Web Template with Liquid to run a FetchXML query, load the results into JavaScript variable(s) or Object/Array etc and then when the Form loads populate the fields from the JavaScript, OR
    2. Use the Portals Web Api functionality to populate the fields, OR
    3. Depending on what you are doing could combine 1 & 2
    4. If the user only needs to view the data, then could make use of a Quick Create View form embedded on your Portal Form.
    5. Create a record in Dataverse to hold latest details (or modify the Contact form), only have 1 record per Contact (user) - linked to the Contact via lookup field, when someone updates it write the update to another table (so you have a running history).  Use a Table permission with a Scope of Contact on the latest details table. 
      • Variation of this would be to create a Lookup in the Contact to the new latest details Table, and then create a Basic Form and set its record source to Record Associated to Current Portal User and then select the relationship that is the Lookup.
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard