Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Suggested answer

Email Link to Associated View

(3) ShareShare
ReportReport
Posted on by

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:
  • Suggested answer
    Fubar Profile Picture
    7,966 Super User 2025 Season 1 on at
    Email Link to Associated View
    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)
     
     
     
  • Suggested answer
    surya narayanan Profile Picture
    24 on at
    Email Link to Associated View
    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
    Jon Unzueta Profile Picture
    784 on at
    Email Link to Associated View
     

    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.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43