Comment créer un calculateur en ligne ?

  • PROSPA_Patrick
    Demandé le 12 juillet 2024 à 06:33

    Bonjour ,


    j'ai besoin de créer un calculateur en ligne dont le résultat se fait en temps réel.


    j'ai un tarif de base sur lequel je rajoute des options.


    J'ai besoin de recueillir des champs et en fonction de ses champs de calculer un résultat final.


    Exemple, je demande un nombre de pages supplémentaires. Le tarif unitaire pour la page supplémentaire et de 50 €. , le système doit multiplier le nombre de pages supplémentaires par le tarif unitaire de 50 € pour avoir un résultat du nombre de pages supplémentaires multiplié par 50 €.


    Deuxième type de critères au résultat final un forfait. par exemple s'il y a du rgpd, il faut rajouter 200 €. Donc, le résultat final sera majoré ou non de 200 €.


    Exemple A


    tarif de base 1500.


    Pages supplémentaires : 2


    Rgpd: oui


    Résultat= 1500 +(2(pages supplémentaires)*50)+ 200( rgpd) =1800 


    Exemple B


    tarif de base 1500.


    Pages supplémentaires : 10


    Rgpd: non


    Résultat= 1500 +(10(pages supplémentaires)*50)+ 0( rgpd) =2000 .


    Est ceque c'est possible avec JOTFORM ?


    Merci d'avance, 

    Patrick 

  • Gian Jotform Support
    Répondu le 12 juillet 2024 à 09:00

    Hi PROSPA_Patrick,

    Thanks for reaching out to Jotform Support. Our French Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, that is possible using the Form Calculation widget. Let me walk you through the process:

    • For the additional pages field, you can use the Number element and for the GDPR question, you can use a Single Choice field.

    Comment créer un calculateur en ligne ? Image 1 Screenshot 60

    Comment créer un calculateur en ligne ? Image 2 Screenshot 71

    • Add the Form Calculation widget to perform a calculation based on the answer from the two fields:

    Comment créer un calculateur en ligne ? Image 3 Screenshot 82

    • Check the screencast below showing how to add the formula:

    Comment créer un calculateur en ligne ? Image 4 Screenshot 93

    Here's the result:

    Comment créer un calculateur en ligne ? Image 5 Screenshot 104

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

  • PROSPA_Patrick
    Répondu le 12 juillet 2024 à 09:36

    Bonjour Gian,

    vous pouvez continuer le support avec Google Translate. Je ne souhaite pas avoir un francophone d'une façon obligatoire.
    Merci pour votre réponse, elle va dans le sens de ce que j'attends.

    Je vais tester demain après-midi et je vais revenir vers vous.

    Patrick


  • PROSPA_Patrick
    Répondu le 13 juillet 2024 à 04:56

    Bonjour Gian,

    merci beaucoup pour l'aide.

    J'ai appliqué vos recommandations et ça fonctionne.

    Juste un petit détail. il n'y a nulle part de marquer que les éléments doivent être mis en noir si on ne veut pas qu'ils apparaissent et en gris si on veut qu'ils apparaissent.
    Je vous ai fait une vidéo
    https://komododecks.com/recordings/mZYiCTb5t5jq5C8p3in2

    je pense que je vais souscrire à votre produit.

    Merci beaucoup Gian,

    Patrick

  • Mary Eden Jotform Support
    Répondu le 13 juillet 2024 à 07:22

    Hello Patrick,

    It looks like you're having issues with how the Form Calculation Widget interprets numbers and Strings in your form. Is that correct? Please note that the number in the Form Calculation widget means that you selected the value type as a Number. The numbers/trailing 0-9 are used to easily distinguish from the String value type. The String value type uses A-Z trailing and is used to show texts in the Form Calculation widget. Let me show you the difference between these two features:

    • Performing calculations using the Number in the Form Calculation Widget.

      Comment créer un calculateur en ligne ? Image 1 Screenshot 40
    • Adding text using String in the Form Calculation Widget.
      Comment créer un calculateur en ligne ? Image 2 Screenshot 51

    If you make calculations and by accident consider one of the formulas as String, you will not get the correct result. Here's an example that shows this.

    Comment créer un calculateur en ligne ? Image 3 Screenshot 62

    Give it a try and reach out again if you have any other questions.

  • PROSPA_Patrick
    Répondu le 13 juillet 2024 à 12:58

    Bonjour Mary Eden,

    merci pour l'information j'ai modifié le formulaire.



Votre réponse