PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Gravity Forms Pricing Fields

  1. Hi Support

    We are looking to use gravity forms as an order form much the same as this site. What we really want is the way the fields calculate the price based on two number fields.
    http://powerplastics.co.za/order.asp

    I know currently the addition of pricing fields is a featured request, but if we had to code one ourselves what would be the best approach for that?

    We can use a Wordpress page template and use JavaScript to work the calculations or if it would be easier hook into the gravity forms plugin?

    Posted 13 years ago on Wednesday October 6, 2010 | Permalink
  2. You would have to use drop down/radio button/checkbox fields and place the price in the value field for each option. Then you would have a numeric field to your form to act as the total and you would have to write jQuery to calculate the selection fields that are selected. I'm not 100% sure how doable it is as is just using jQuery and not editing the plugin code. It's a pretty complex customization. It will be a feature of Gravity Forms v1.5. Keep watching as we will be making available 1.5 as a beta release sometime within the next 30 days.

    Posted 13 years ago on Wednesday October 6, 2010 | Permalink
  3. Hi,

    We have been playing around with the new 1.5 beta and I was wondering, it doesn't seem possible to calculate a product price based on length and width entered, e.g.

    Xmeters * Ymeters = Zmeters sqrd

    Total price = Zmeters sqrd * price/m sqrd

    Or am I missing something?

    Posted 13 years ago on Tuesday November 16, 2010 | Permalink
  4. Gravity Forms Pricing Fields work strictly on a price * quantity basis. There is no complex calculation capabilities for doing complex math such as your example above. It is intended for basic order form functionality rather than complex cart functionality.

    Posted 13 years ago on Tuesday November 16, 2010 | Permalink
  5. Thanks for your time, just wanted to make sure.

    Posted 13 years ago on Wednesday November 17, 2010 | Permalink