# Dynamical populate hidden field with simple product price

**URL:** <https://community.gravityforms.com/t/dynamical-populate-hidden-field-with-simple-product-price/4601>\
**Category:** Get Help\
**Tags:** custom, woocommerce, dynamic-population\
**Created:** [April 25, 2020, 10:04pm UTC](https://community.gravityforms.com/t/dynamical-populate-hidden-field-with-simple-product-price/4601 "2020-04-25T22:04:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5ca7ad6201952229](https://avatars.discourse-cdn.com/v4/letter/u/e56c9b/32.png) [@user5ca7ad6201952229](https://community.gravityforms.com/u/user5ca7ad6201952229)\
**Post date:** [April 25, 2020, 10:04pm UTC](https://community.gravityforms.com/t/dynamical-populate-hidden-field-with-simple-product-price/4601/1 "2020-04-25T22:04:48Z")

</div>

Hi all,

I’m searching for a way how to insert a products price (simple product) into my Gravity form (used as a product form). So far I’ve made a form, where i inserted af hidden with and activated the Dynamic population function, and been giving a parametername to each parameter. From here I not sure how to proceed.  
Reason why, is that in this way, when I update prices, i can just update the regular prices with a csv instead of uploading a form for each product.

Hope somebody here can guide me in the right direction 🙂

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [April 26, 2020, 1:09am UTC](https://community.gravityforms.com/t/dynamical-populate-hidden-field-with-simple-product-price/4601/2 "2020-04-26T01:09:37Z")

</div>

The dynamic population parameter name is used for populating via the query string. So, if you were using those parameters, you could use a URL or link like this one:

[https://www.example.com/product-order-page/?qq=1&nn=Book&pp=100](https://www.example.com/product-order-page/?qq=1&nn=Book&pp=100)

I used parameter names of qq for Quantity, nn for product Name and pp for product Price. That URL would dynamically populate the product field with

Quantity: 1  
Name: Book  
Price: 100

That’s how the dynamic population parameter names work.

What are you trying to accomplish, and where does your information come from?

---

<div class="post-metadata">

**Author:** ![user5ca7ad6201952229](https://avatars.discourse-cdn.com/v4/letter/u/e56c9b/32.png) [@user5ca7ad6201952229](https://community.gravityforms.com/u/user5ca7ad6201952229)\
**Post date:** [April 26, 2020, 6:39am UTC](https://community.gravityforms.com/t/dynamical-populate-hidden-field-with-simple-product-price/4601/3 "2020-04-26T06:39:22Z")

</div>

Hi Chris,  
Thanks for your reply.

I’m trying to make it possible to use the gravity form product add-on, and update the price of the product with a csv into woocommerce like normal.

The idea is that as long gravity form includes the products regular price in the calculation, I can simply just update my products with a csv. Otherwise I have to upload a updated form, every time I need to adjust the price.

I like your example, but since im using woocommerce catalog page as the way into my products, i dont have the opportunity to change the url of the link into the specific productpage  
. At least, that’s what I’m aware of 🙂

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:48am UTC](https://community.gravityforms.com/t/dynamical-populate-hidden-field-with-simple-product-price/4601/5 "2022-01-05T08:48:25Z")

</div>


