What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Calculate a grand total on my dropdown form fields

    Asked by Smokeyknight on April 06, 2013 at 11:01 AM

    I was reading other post and I like to have grand total at the end of the form when the teams get done filling it out.

     

    Thanks for the help

    Page URL:
    http://form.jotform.us/form/30865509467161

    POST thanks
  • Profile Image
    JotForm Support

    Answered by EltonCris on April 06, 2013 at 11:37 AM

    Hi,

    It is possible using your form source code but since this is outside from our scope anymore, we have to find free time for this so we can work on your request but we can't promise anything yet however we will do our best to provide you this as soon as possible.

    First, we would like to know which fields will be calculated on the provided form and the formula for each fields. This would help us create the right script.

    Also, if you'd like to capture the grand total result to your email notifications, we'd suggest to add a separate text box to your form and label it grand total so we will use it for populating the grand total result when the form field changes.

    Thank you!

  • Profile Image

    Answered by Smokeyknight on April 06, 2013 at 11:54 AM

    I would like to have in the grand total field:

    Entry Fee

    Camping Fee

    Extra 10x20 Space

    Anythingbutt Class

     

    Thanks for the Help.

     

     

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 06, 2013 at 12:07 PM

    Hi,

    Thanks, this seems to be all addition according to your fields? We'll see what we can come up with tomorrow morning. ( I am on Philippine Time, GMT+8).

    By the way, any words on the grand total to be captured on your email notification as stated on my previous post?

    Thank you!

  • Profile Image

    Answered by Smokeyknight on April 06, 2013 at 07:20 PM

    I have already added a text to the form for the grand total.

     

    Thank you!

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 07, 2013 at 03:29 AM

    Hi,

    Thank you, I will look it again later today. Stay tuned!

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 07, 2013 at 07:35 AM

    Ok, sorry for the delay. Here's the calculation script: http://pastie.org/pastes/7350195/text

    To apply it,

    1. Get your form source code,

    2. Paste the calculation script under the closing tag </form>

    3. Save it or embed it to your site!

    Demo: https://shots.jotform.com/elton/calculate_202265.html

    Let me know if you need anything else. Cheers!

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 07, 2013 at 08:06 AM

    I just realized the addEventListener isn't supported with Internet Explorer 8 and earlier. I have updated my script to work with these browsers. Please get the updated copy here: http://pastie.org/pastes/7350462/text

    Thank you!

  • Profile Image

    Answered by Smokeyknight on April 07, 2013 at 09:30 AM

    Hi

    Just a quick question. How do I get the form center on the page? I have download the code and loaded it on servers. I works like a charm but I would like the form center on the page.

     

    Thanks for the help!

  • Profile Image
    JotForm Support

    Answered by EltonCris on April 07, 2013 at 09:46 AM

    Glad it works!

    To center it on the page, simply add margin:0 auto; under .form-all class on your form source code. Check this screen.

    Thank you!

  • Profile Image

    Answered by Smokeyknight on April 07, 2013 at 10:01 AM

    Thanks for the help. Your support system ROCKS!

  • Profile Image

    Answered by jamesforpm on September 11, 2014 at 10:20 PM

    To recreate this set up, what type of field should the Grand Total field be?