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 / Populate fields in form
Power Pages
Answered

Populate fields in form

(0) ShareShare
ReportReport
Posted on by 108

Hi everyone,

 

I need with following:

 

I need to create URL which can directly open a form in portal with two parameters (i.e. Name, Email)

 

Next, I need to populate URL parameters values in my form which can also be stored at the backend.

 

For Example:

 

Name //populated from URL

Email  //populated from URL

other info

 

 

Any help would be appreciated

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    H V Profile Picture
    1,510 on at

    Hi @Jackson_Dhorty 

     

    • Go to Your Basic Form
    • Click on Additional Settings
    • Add below code in Custom JavaScript

    URL: https://xyz.powerappsportals.com/appointment/?subject=yoursubjecttext&description=yourdescriptiontext

     

     

    $( document ).ready(function() {
     var URLs = new URLSearchParams(window.location.search);
     $("#subject").val(URLs.get('subject'));
     $("#description").val(URLs.get('description'));
    });

     

     

    Using above code, you can only populate value in fields.

     

    However, If you want to first create record with this parameters, you have to use WEB API to create record then you can redirect to this record. Please refer below MS doc to create record using web api.

    https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-overview

    https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-perform-operations

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 33

#2
sannavajjala87 Profile Picture

sannavajjala87 28 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 22 Super User 2026 Season 2

Last 30 days Overall leaderboard