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 percentages

  1. My staff is going to access a form on our site which will help expedite our quote process.
    I would like them to be able to calculate gratuity and tax if possible. I understand that this isnt implemented in the current version however I was wondering if there is any available 'code'. The site is http://www.whirlyballatlanta.com and the form is at
    http://www.whirlyballatlanta.com/index.php/resources/
    Darryl

    Posted 13 years ago on Sunday February 27, 2011 | Permalink
  2. Hi DJ,

    I don't know of any available code that does quite what you're looking to do. A couple pointers if you feel like taking a stab yourself.

    • 1 - Assuming you want to show these calculations on the form itself, you'll want to use Javascript to calculate these numbers based on the value of the Total field.
    • 2 - You can bind a jQuery function to the change event of the Total field so any time the total changes, you can update your gratuity and tax fields.
    Posted 13 years ago on Sunday February 27, 2011 | Permalink
  3. David,
    How exactly would you bind a jquery function to the change of the total field? I'm struggling to get a similar thing to work.

    Thanks in advance

    Posted 13 years ago on Thursday December 1, 2011 | Permalink
  4. kyle
    Member

    These two links will probably help:

    Bind - jQuery API

    Change - jQuery API

    Posted 13 years ago on Thursday December 1, 2011 | Permalink
  5. I'm not having any joy with this, is this correct as I can't gget it to do anything

    jQuery('.ginput_total').bind('change',function(){
    alert('the total has changed');
    });

    Posted 13 years ago on Friday December 2, 2011 | Permalink
  6. Hi Tom,

    We've added a customizable javascript function to handle making changes to the total. Here is a related walk through that should get you started:

    http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax

    Posted 13 years ago on Friday December 2, 2011 | Permalink

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