# Autofill field from page / WooCommerce product name?

**URL:** <https://community.gravityforms.com/t/autofill-field-from-page-woocommerce-product-name/11637>\
**Category:** Get Help\
**Tags:** embed\_post:post\_title, woocommerce\
**Created:** [January 19, 2022, 5:34am UTC](https://community.gravityforms.com/t/autofill-field-from-page-woocommerce-product-name/11637 "2022-01-19T05:34:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user60b84d2e6a7e5090](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user60b84d2e6a7e5090/32/4400_2.png) [@user60b84d2e6a7e5090](https://community.gravityforms.com/u/user60b84d2e6a7e5090)\
**Post date:** [January 19, 2022, 5:34am UTC](https://community.gravityforms.com/t/autofill-field-from-page-woocommerce-product-name/11637/1 "2022-01-19T05:34:13Z")

</div>

Hi Everyone - I’m not 100% how to word this, but we are looking to use a single enquiry form and embed it within WooCommerce products.

Question: Is there a field /or addon we can use for Gravity forms to capture the product name the form is on and add it to the submission… so we know which product the enquiry has come from?

Will save making an individual form for each product.

Or if anyone has achieved this another way - we would appreciate to hear your methods.

TIA.

---

<div class="post-metadata">

**Author:** ![sacom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/sacom/32/53_2.png) [@sacom](https://community.gravityforms.com/u/sacom)\
**Post date:** [January 19, 2022, 5:50pm UTC](https://community.gravityforms.com/t/autofill-field-from-page-woocommerce-product-name/11637/2 "2022-01-19T17:50:40Z")

</div>

Gareth, assuming that you have the form embedding part already resolved, to get the product title you can do this:

1. Add a [Hidden field](https://docs.gravityforms.com/hidden/) to your form.
2. Add the {embed\_post:post\_title} merge tag as Default Value (Advanced settings of the field).

WooCommerce products are just custom post types, so the above will add the product title to the Hidden field on form submission.

---

<div class="post-metadata">

**Author:** ![user60b84d2e6a7e5090](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user60b84d2e6a7e5090/32/4400_2.png) [@user60b84d2e6a7e5090](https://community.gravityforms.com/u/user60b84d2e6a7e5090)\
**Post date:** [January 19, 2022, 9:18pm UTC](https://community.gravityforms.com/t/autofill-field-from-page-woocommerce-product-name/11637/3 "2022-01-19T21:18:55Z")

</div>

Hi Samuel,  
Fantastic - thank you very much for your reply!  
Appreciate it.

- Just thought I would ask - I intended on using WooCommerce Gravity Forms Product Add-Ons to embed the form into the WooCommerce Product - is this the best way to go in your opinion or is there another (more cost effective) way of doing this. It’s just a simple enquiry form, so no pricing / cart options are needed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [January 24, 2022, 3:10am UTC](https://community.gravityforms.com/t/autofill-field-from-page-woocommerce-product-name/11637/4 "2022-01-24T03:10:19Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
