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

    How to calculate a total amount to pay based on field input or selection?

    Asked by vsmarcas on March 07, 2016 at 01:40 PM

    2) Criei um campo "total" e qual é condição que o usuario ao selecionar varios produtos só somar no campo Total o que ele seleciona ( atualmente coloquei uma condição que ele fica somando tudo mesmo sem esta selecionado)

    Exemplo que coloquei no meu formulario: campo "escolha sua pizza" quando "esta preenchido" calcular "escolha sua pizza" + "preço" ( bauru) =  campo "total". Mesmo não esta selecionado o campo aparece o campo "total" somado.

    Preciso que o campo "total" só faça ação quando o usuario selecionar seus pedido.

  • Profile Image
    JotForm Support

    Answered by Kevin_G on March 07, 2016 at 01:47 PM

    I see that you are using a payment integration, it calculates automatically the total amount to pay and it shows the amount on the form, I see that you want to calculate the total amount based on other field input/selection, you may also use calculations instead of conditions to get the total, please take a look on this guide to get further details about it: http://www.jotform.com/help/259-How-to-perform-calculation-in-the-form

    Once you have the calculations in your form, you need to pass this value to a payment field, this guide will help you to pass the value to a payment field: http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

    Do let us know if you have more questions, we will be glad to assist you.