# How to Create a Custom Product Field Type for Pricing

**URL:** <https://community.gravityforms.com/t/how-to-create-a-custom-product-field-type-for-pricing/17837>\
**Category:** Get Help\
**Tags:** custom, product-field, gf-field, custom\_field\
**Created:** [July 11, 2024, 12:54pm UTC](https://community.gravityforms.com/t/how-to-create-a-custom-product-field-type-for-pricing/17837 "2024-07-11T12:54:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5fd2158ece6fd205](https://avatars.discourse-cdn.com/v4/letter/u/bb73d2/32.png) [@user5fd2158ece6fd205](https://community.gravityforms.com/u/user5fd2158ece6fd205)\
**Post date:** [July 11, 2024, 12:54pm UTC](https://community.gravityforms.com/t/how-to-create-a-custom-product-field-type-for-pricing/17837/1 "2024-07-11T12:54:21Z")

</div>

Hello,

I want to create a custom field type in Gravity Forms that will act as a custom product.

For clarity, let’s assume I have a simple input number field that extends G\_Field:

class Custom\_Product extends G\_Field {  
// Custom code here  
}

I need this custom field to be added to the Pricing category and be included in the total calculation.

Could anyone guide me on the methods, filters, or JavaScript functions required to override or define to achieve this?

Thank you!

---

<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:** [August 10, 2024, 12:54pm UTC](https://community.gravityforms.com/t/how-to-create-a-custom-product-field-type-for-pricing/17837/2 "2024-08-10T12:54:24Z")

</div>

Closed on August 10, 2024, 12:54pm UTC

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