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.

Calculating "total" of product measured in feet?

  1. Hi,

    I am trying to create an online calculator, where I can get the client to calculate their required office space.

    It's broken down into three sections;

    1) the user selects the type of space i.e reception / office
    2) the user selects the size of the space i.e small 140 sq ft / medium 250 sq ft/ large 420 sq ft
    3) summary of their requirements i.e 1 x reception (M) 250 sq, 2 x offices (S) 140 sq ft
    Total Size = XXXX sq feet
    Submit

    Basically, I need to add everything together.

    As there is no price, I am unsure as to how to work out the total and how to go about it to manually show up the added items onto the summary section?

    I do realise this is a bit hard to explain and possibly understand, so if required, I can add a pic as to what I am trying to do.

    Thank you very much in advanced, please be gentle, this is my first post!

    Regards,

    G.

    Posted 14 years ago on Sunday April 10, 2011 | Permalink
  2. This isn't a built in feature of Gravity Forms. The only calculations it does as a built in feature are related to the Pricing Fields and pricing calculations with the Pricing fields. It doesn't calculate or do math on fields other than that. In order to do this you could only do it as a customization by writing custom jQuery to calculate values of certain fields and update the value of the total field. You wouldn't use the Pricing Fields as they only calculate pricing.

    Posted 14 years ago on Monday April 11, 2011 | Permalink
  3. Carl,

    Thank you for your reply. I was hoping that the pricing fields could be modified as such to accomodate for my requirements, however, as you have stated, they can't.

    This was one of the main reasons for purchasing the developer license.

    When you say this "In order to do this you could only do it as a customization by writing custom jQuery to calculate values of certain fields and update the value of the total field" do you mean within Gravity forms or as something completely different?

    Thank you very much for your time,

    G.

    Posted 14 years ago on Monday April 11, 2011 | Permalink
  4. You would use jQuery to multiple the value of whatever fields need to be calculated and then update the value of the total field. It would be a jQuery calculation. You would write custom jQuery and add it to your theme on the page where your form is displayed. Or you can hire a developer with jQuery experience who could do this customization for you.

    Posted 14 years ago on Monday April 11, 2011 | Permalink

This topic has been resolved and has been closed to new replies.