# Passing custom field info from email html snippet to a webform

**URL:** <https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221>\
**Category:** Max Classic\
**Created:** [March 18, 2018, 8:45pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221 "2018-03-18T20:45:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Justin\_Sullivan](https://integration.keap.com/u/Justin_Sullivan)\
**Post date:** [March 18, 2018, 8:45pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/1 "2018-03-18T20:45:14Z")

</div>

I am looking to pass custom field information from an html snippet within an email to a webform, but I simply cannot figure out the syntax!  
Example:  
Using the standard Contact field: FirstName, the syntax is FirstName=~Contact.FirstName~

What would the syntax be for the custom field: InsuranceCo ?

Thanks in advance for your help!!

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [March 19, 2018, 12:43am UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/2 "2018-03-19T00:43:43Z")

</div>

You have to go into the custom fields edit page and click on the link for db names. It will tell you the name for that field (which may end in a number) and then you can use it with an underscore at the beginning of the name.

---

<div class="post-metadata">

**Author:** ![Justin\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Justin\_Sullivan](https://integration.keap.com/u/Justin_Sullivan)\
**Post date:** [March 19, 2018, 11:56am UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/3 "2018-03-19T11:56:34Z")

</div>

Thanks John. I have already found the db name, but cannot get the syntax to work.  
db name is InsuranceCo  
What would the syntax for the html snippet be?

For example, using the standard Contact field: FirstName, the syntax is:  
FirstName=~Contact.FirstName~

---

<div class="post-metadata">

**Author:** ![Justin\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Justin\_Sullivan](https://integration.keap.com/u/Justin_Sullivan)\
**Post date:** [March 19, 2018, 2:46pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/4 "2018-03-19T14:46:56Z")

</div>

I have tried  
&InsuranceCo=~Contact.\_InsuranceCo~  
&\_InsuranceCo=~Contact.InsuranceCo~  
&\_InsuranceCo=~\_InsuranceCo~  
…and a number of other combinations without success. What am I missing?

Thank you in advance for your input and help!!!

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [March 19, 2018, 3:07pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/5 "2018-03-19T15:07:12Z")

</div>

If it’s from within an email (email builder) then you can just select it from the merge field box (merge button) and it will insert the correct name.

---

<div class="post-metadata">

**Author:** ![Justin\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Justin\_Sullivan](https://integration.keap.com/u/Justin_Sullivan)\
**Post date:** [March 19, 2018, 3:08pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/6 "2018-03-19T15:08:53Z")

</div>

I’m putting it within an html snippet, not the body of the email.  
Looking to carry values over to the webform link within the snippet.

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [March 19, 2018, 4:22pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/7 "2018-03-19T16:22:21Z")

</div>

Ok but you can go into an email and get the proper code is what I’m suggesting.

---

<div class="post-metadata">

**Author:** ![Justin\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Justin\_Sullivan](https://integration.keap.com/u/Justin_Sullivan)\
**Post date:** [March 19, 2018, 7:00pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/8 "2018-03-19T19:00:10Z")

</div>

Looks like the syntax should be correct, but the data is still not coming through on the custom fields.

---

<div class="post-metadata">

**Author:** ![Justin\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Justin\_Sullivan](https://integration.keap.com/u/Justin_Sullivan)\
**Post date:** [March 19, 2018, 7:40pm UTC](https://integration.keap.com/t/passing-custom-field-info-from-email-html-snippet-to-a-webform/34221/9 "2018-03-19T19:40:26Z")

</div>

Nevemind. I needed to test it with an actual contact. Now the data comes through!  
Thank you for your help John!
