How to validate the number on the form with the quantity of payment field?

  • kevangibbs
    Asked on March 20, 2017 at 2:05 PM

    We have a form set up to allow for people to provide us varying amounts of info - i.e the number of dogs they own. At checkout, we ask them to select how many dogs they have. So, if they gave us info on two dogs, they're supposed to choose the 2 dog option at checkout. Is there anyway to make the Product Number align with the Dog Number? As it is, they can say they have 4 dogs and only be charged for 1. As well, they can only have 1 dog and mistakenly pay for 4.

  • Kiran Support Team Lead
    Replied on March 20, 2017 at 5:51 PM

    I have checked your JotForm and see that the payment field is configured with special pricing based on the number of dogs. If you want to avoid the confusion of selecting the number of dogs to match with the number of dogs entered on the form, you may consider calculating the final value manually by using a Form Calculation widget. 

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget

    You may then pass the calculated value to the payment field by choosing the custom amount.

    https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    Hope this information helps! Please give it a try and let us know if you need any further assistance. We will be happy to assist.