Is there a way to send form data from one form to another? Let me explain: I want to have a newsletter subscription form with only the email address.
Then, on the thank you page, I want to ask for some additional details like name, etc., but of course, I don’t want to ask them for their email address again on that page as this looks weird and unprofessional.
So is there a way to already prefill the email address in that form on the thank you page?
Hey @dpihubspot
As I can see in this article You cannot use smart content or prefilled fields on a thank you page after a form submission in HubSpot: Forms | Frequently Asked Questions
Also, you can collect additional details like name, phone number, etc in your newsletter form only:
Hi @dpihubspot,
This is generally possible but requires some custom web development. Out of the box, no, HubSpot cannot carry over the email address and identity from the previous form submission.
You might find in the documentation that forms can be prepopulated based on previously submitted forms based on cookies. The risk here is however is that users who block cookies or do not accept them will simply not be identified in the second form submission: Understand pre-populated form fields
The email address is the unique identifier. It missing means that the form submission will be anonymous. Privacy and anti-tracking extensions can easily lead to a situation where this happens more often than you’d like.
Long story short: you should use a secondary form including the email address for a quick and easy solution.
Best regards!
Can this be done using HTTP post variables from the first form? Like this, no shady business with cookies and a higher probability it will arrive.
Hi @dpihubspot,
This is possible with custom development.
Here is the rough idea:
- Set up a non-form email field (HTML only) on the first page. Fetch and save this email data as URL attribute.
- On the thank you page, hide the form’s email field (using CSS). Fetch the email value from the URL attribute and append it to the hidden email field.