How to add calculations to my form?

  • reprolanguedoc
    Demandé le 1 février 2024 à 11:05
    Dans mon formulaire, je prévois également d'effectuer des calculs automatiques. Cela signifie que, par exemple, si le coût d'une feuille de papier blanc est de 0,10€ et que le client en demande 10, existe-t-il un module qui peut préremplir automatiquement la case du total en effectuant le calcul ?
  • Catherine Jotform Support
    Répondu le 1 février 2024 à 12:33

    Hi Victor,

    Yes, we can perform simple and complex calculations in our forms using the Form Calculation widget. Let me show you how based on the example you provided:

    • In Form Builder, click on the Add Form Element menu on the left side of the page.
    • Under the Basic tab, drag and drop a Single choice and a Short Text element to your form:

    How to add calculations to my form? Image 1 Screenshot 50

    • Click on the Single-choice field (Product) Properties and under the Options tab enable the Calculation values.
    • In the Calculation values field, set the value.
    • Click on the Shot-Text field (Quantity) Properties and under the Options tab, select Numeric in the Validation field.

    How to add calculations to my form? Image 2 Screenshot 61

    • Click on Add Form Element and under the Widgets tab, drag and drop the Form Calculation widget.
    • Click on the Widget Settings and select the Fields you need to perform the calculation, just as you see below:

    How to add calculations to my form? Image 3 Screenshot 72

    Check out the results:

    How to add calculations to my form? Image 4 Screenshot 83

    For more details, please see this guide. If you want, you can clone my form to check the settings yourself. Here is a guide on how to do that.

    Give it a try and let us know if you need any other help.