Multiply the payment due by the number of boxes checked?

  • LBtaekwondo
    Asked on August 6, 2014 at 9:49 PM

    On my form, folks select a week or weeks to enroll their kids for camp. They need to be charged a deposit of $50 per child/ per week.

    My payment field asks them how many children they are registering and charges $50 for each, but I need that amount to then be multiplied by the number of weeks they have selected from the check boxes. How can I make this work?

  • TitusN
    Replied on August 7, 2014 at 4:43 AM

    Hello, 

    You can achieve this by using the calculation widget. You can assign values to each of the week selections, then the calculation widget can capture those values when selected, and multiply the total with the number of children from a drop down field. The total can then be passed to Paypal from the calculated total. 

    Here are the steps that you can use to achieve that. 

    1. Assign a value to each of the week check-boxes - I'm assuming each selected option amounts to one week. The values will be used with the calculation widget to give the total selected weeks: 

    Multiply the payment due by the number of boxes checked? Image 1 Screenshot 50

    2. Add a dropdown field for the number of children. 

    Multiply the payment due by the number of boxes checked? Image 2 Screenshot 61

    3. Add a calculation field/widget that will calculate the total amount: 

    Multiply the payment due by the number of boxes checked? Image 3 Screenshot 72

    4. On your Paypal field, configure it to use the calculated total  as shown in this guide

    You can hide the calculation field so that your users don't see it as shown below: 

    Multiply the payment due by the number of boxes checked? Image 4 Screenshot 83

    Let us know if you hit any bumps. 

  • LBtaekwondo
    Replied on August 7, 2014 at 9:16 PM

    Thank you, kind stranger!!

  • Ashwin JotForm Support
    Replied on August 8, 2014 at 12:31 AM

    Hello LBtaekwondo,

    On behalf of my colleague, you are welcome.

    Do get back to us if you have any questions.

    Thank you!