# Auto-populate form fields

**URL:** <https://community.hubspot.com/t/auto-populate-form-fields/87177>\
**Category:** Email Marketing Tool\
**Tags:** professional\
**Created:** [August 10, 2023, 7:37am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177 "2023-08-10T07:37:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SIon1](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@SIon1](https://community.hubspot.com/u/SIon1)\
**Post date:** [August 10, 2023, 7:37am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177/1 "2023-08-10T07:37:54Z")

</div>

Dear all,

for our emails, we are starting to auto-populate the form fields.

In specific for one of our emails we have a CTA button that redirects to a form on our website.

When I try the test email and then click on the button that redirects me to our website I see that the fields Name, Last Name, and email are pre-populated.

This is the URL for the CTA button:

 ![Screenshot 2023-08-10 at 09.35.57.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/3315902f7f64799da5b96c73a36e86893967d40b.png)

However, this doesn’t necessarily always work. As an example, for my colleague that got the email the traditional way, and not through the testing tool, the form doesn’t populate the three fields instead it looks like this:

 ![Screenshot 2023-08-10 at 09.33.32.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/b/ab95403290390569ef2b010ac8f63caea0eb83ea.jpeg)

What can be the error? As he is in the Hubspot database and therefore the contact exists for him.

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 10, 2023, 7:40am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177/2 "2023-08-10T07:40:38Z")

</div>

Hi @SIon1,

What exactly does this mean?

> * * *
> 
> @SIon1 wrote:
> 
> for my colleague that got the email the traditional way
> 
> * * *

Do you mean that you sent / published the marketing email? If so, have you checked whether the contact record of your colleague has values in all of the fields that you’d like to see populated?

Have you previewed the email for this coworker and checked whether the preview works as intended?

Best regards

---

<div class="post-metadata">

**Author:** ![SIon1](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@SIon1](https://community.hubspot.com/u/SIon1)\
**Post date:** [August 10, 2023, 7:57am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177/3 "2023-08-10T07:57:26Z")

</div>

Hei Karsten,

Yes, so every time someone subscribes to the newsletter one gets this email and this is what my colleague did.

For sure we have the information (first name, last name, and email) of him in Hubspot.

When we do the test email with his contact the field is correctly populated with his FIrsta Name, Last Name and email.

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 10, 2023, 8:01am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177/4 "2023-08-10T08:01:55Z")

</div>

Hi @SIon1,

Have you checked whether the email in their inbox generates the link with the parameters or does it arrive without the parameters?

---

<div class="post-metadata">

**Author:** ![SIon1](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@SIon1](https://community.hubspot.com/u/SIon1)\
**Post date:** [August 10, 2023, 8:24am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177/5 "2023-08-10T08:24:51Z")

</div>

Not sure I understand it correctly.

- Do you mean the test email or the “regular” one when they subscribe?

- With parameters you mean the ones in the form and therefore the ones when they click on the CTA button of the email?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 10, 2023, 8:28am UTC](https://community.hubspot.com/t/auto-populate-form-fields/87177/6 "2023-08-10T08:28:28Z")

</div>

Hi @SIon1,

Here’s what I understood: You sent / published the email and a coworker received it in their inbox.

The next step in troubleshooting would be to check whether the link was generated correctly in this sent email, either by hovering over the CTA or, after clicking the CTA, checking what exactly displays in the address bar of the browser of the coworker.
