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 / Email Link to Associat...
Power Pages
Suggested Answer

Email Link to Associated View

(3) ShareShare
ReportReport
Posted on by 6

I have a list of records in power pages contact form, where i want the email associated with that view appear in another form (redirected to another page ).Here i want the same email appear to this form(Question  form) for user to submit . any links or documentation related to this 

Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,827 Super User 2025 Season 2 on at
     

    To pass the email address (or any other field value) from one form to another in Microsoft Power Pages, especially when redirecting between pages, you can use query string parameters. Here's how you can do it:


     Step-by-Step Guide

    1. Configure the First Form (Contact Form)

    • In the Entity Form settings for your contact form:
      • Under On Success Settings, choose:
        • On Success: Redirect
        • Redirect Web Page: Select the page where your second form (Question Form) is located.
        • Append Attribute Value to Query String Parameter Name: e.g., email
        • Append Attribute Value to Query String Attribute Logical Name: e.g., emailaddress1

    This will redirect the user to the next page with the email in the URL like:

    https://yoursite.com/question-form?email=user@example.com
    

    2. Configure the Second Form (Question Form)

    • In the Entity Form for the question form:
      • Set the Record Source Type to Query String.
      • Use the same parameter name (email) to pre-fill the email field.
     
    🏷️ Tag me if you have any further questions or if the issue persists.
    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.
    ❤️ Give it a Like if you found the approach useful in any way.
  • Suggested answer
    surya narayanan Profile Picture
    102 on at
    Hi,

    Step 1: Pass Email as a URL Parameter

    On the list/form page (where you're showing Contact records), modify the link to redirect with the email in the URL

    <a href="/question-form-page?email={{ contact.emailaddress1 }}">
    Ask a Question
    </a>

    Or in Web Template for each row in the list:

    {% for contact in contacts %}
    <tr>
    <td>{{ contact.fullname }}</td>
    <td>{{ contact.emailaddress1 }}</td>
    <td>
    <a href="/question-form-page?email={{ contact.emailaddress1 }}">Ask Question</a>
    </td>
    </tr>
    {% endfor %}

    Step 2: Read URL Parameter on Question Form Page

    Add this script in the Web Page > Page Copy (HTML) or in a Web File attached to the page:

    <script>
    function getQueryParam(param) {
    const urlParams = new URLSearchParams(window.location.search);
    return urlParams.get(param);
    }


    document.addEventListener("DOMContentLoaded", function () {
    const email = getQueryParam("email");
    if (email) {
    const emailInput = document.querySelector('input[name="emailaddress"]');
    if (emailInput) {
    emailInput.
    value = email;
    }
    }
    });

    </script>
  • Suggested answer
    Fubar Profile Picture
    8,354 Super User 2025 Season 2 on at
    You may need to be more clear on what your structure is, as you may not need to pass it to the next page.
     
    Is the email address you are after the email of the currently logged in user? if so, on the next page if there is a form you may be able to use a form metadata record to populate from the currently logged in user (contact) record (if no form, could user Liquid and its 'user' object).
     
    Is the email address part of a record that is displayed in a subgrid or list? then you may be able to retrieve it using Liquid on the next page using the id of the record.
     
    Alternatively, you would need to look at adding it as a parameter to the url. If doing so, Liquid can also be used to extract the parameter value (server-side)
     
     
     

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
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard