web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Is it possible to pass form submission data to the redirect url landing page somehow?

(2) ShareShare
ReportReport
Posted on by 2,175
A long shot but I want to be able to pass some of the form submission values to the landing page of the redirect url that we can specify after the form has been submitted.
 
I'm just not sure how to go about it or whether it's possible. The most obvious method is sending it as query parameters to the redirect url. How would I do it? I can add javascript to save the field value but is there a way to pass it to the redirect url?
 
I have the same question (0)
  • Daniyal Khaleel Profile Picture
    752 Most Valuable Professional on at

    You're right , the most common and straightforward way to pass form submission values to a redirect URL is by appending them as query parameters.If you're using a form in a Customer Journey (e.g. in a CRM or marketing automation platform like Salesforce, HubSpot, etc.), the ability to redirect after form submission and include data in the URL depends on the platform, but in many cases you can inject data into the redirect URL using merge fields or JavaScript.

     
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    Hi there,

    Yes, it is possible to pass form values to a redirect URL upon submission, allowing the destination page to prefill fields without requiring the user to re-enter their information.

    Here's how you can do it:

    1. Use Query Parameters in the Redirect URL

      • Modify the redirect URL to include form field values as query parameters.
      • Example
    https://www.example.com?firstName=John&lastName=Doe&email=john.doe@example.com

    Dynamic Value Injection

    • In your form configuration (depending on the platform), use merge tags or JavaScript to dynamically insert the form values into the redirect URL.
    • Example using JavaScript
    var firstName = document.getElementById("firstName").value;
    var lastName = document.getElementById("lastName").value;
    var email = document.getElementById("email").value;
    window.location.href = "https://www.example.com?firstName=" + encodeURIComponent(firstName) + "&lastName=" + encodeURIComponent(lastName) + "&email=" + encodeURIComponent(email);
    1. Receiving Page Setup

      • Ensure the destination page is configured to read query parameters and prefill fields accordingly.

    Let me know if this helps, and please mark the response as helpful if it answered your question 😊

    Best regards!

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans