Le widget de calcul de formulaire ne fonctionne pas

  • mysalesmachine
    Demandé le 20 mars 2024 à 08:20

    Bonjour,

    Je veux mettre un résultat total à mon formulaire.

    J'ai mis le Widget "calculatrice pour formulaire" à la fin

    J'ai des questions à choix unique et des questions à choix multiple.

    J'ai créé toutes les conditions (chaque réponse bonne = 1 point)

    Le widget de calcul de formulaire ne fonctionne pas Image 1 Screenshot 30

    Le problème : si je répond juste à une seule question, le calculateur fonctionne et affiche 1 point par contre dès que j'ai plusieurs bonnes réponses, le calculateur ne fait pas l'addition.

    Aussi j'ai essayé de créer l'addition dans le Widget mais même comme ça, ça ne fonctionne pas :

    Le widget de calcul de formulaire ne fonctionne pas Image 2 Screenshot 41

    Pouvez-vous m'aider à ce que le calculateur calcule toutes les bonnes réponses ?

    Merci

    Luca

  • Jemuel Jotform Support
    Répondu le 20 mars 2024 à 08:44

    Hi Luca,

    Thanks for reaching out to Jotform Support. Our French Support agents are currently busy assisting other Jotform users. However, I'd be happy to help you in English using Google Translate and you can reply in whichever language you feel comfortable using. If you'd rather have support in French, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again. 

    Now, let me help you with your question. When I cloned and tested your form, the same thing happened for me. After investigating, I found that your conditions are conflicting with the calculation widget, and the last question's calculation value is not toggled on. Let me show you how to fix it:

    1. In Form Builder, click on Settings at the top.
    2. Click on Conditions on the left.
    3. Click on the Gear icon beside the conditions, and click on Disable. Le widget de calcul de formulaire ne fonctionne pas Image 1 Screenshot 40

    Now, let's add a calculation value to the last question.

    1. In Form Builder, click on the Multiple Choice field.
    2. Click on the Gear icon, under Options, toggle on the Calculation Value. You can now set the value for each question. Le widget de calcul de formulaire ne fonctionne pas Image 2 Screenshot 51

    Here's my result: Le widget de calcul de formulaire ne fonctionne pas Image 3 Screenshot 62 Here's my demo form. You can clone it to test or inspect.

    Give it a try, and let us know if you need more help.

  • mysalesmachine
    Répondu le 20 mars 2024 à 10:19

    Merci pour votre assistance par contre pour la question à choix multiple, je ne peux pas faire comme vous dites car pour que la question soit bonne, la personne doit répondre A et B. Et si seulement elle répond que ces 2 réponses là alors elle aura 1 point. Donc si elle répond que A, elle a 0 et si elle répond A et B et C, elle a aussi 0. C'est pour cela que j'ai utilisé les conditions.

  • Jemuel Jotform Support
    Répondu le 20 mars 2024 à 11:16

    Hi Luca,

    Thanks for getting back to us. Sure, you can achieve this by adding a Short Text field and passing the value to it. Instead of using the Multiple Choice field in your Calculation widget, use the Short Text field. Let me show you how:

    1. In Form Builder, click on Add Form Elements.
    2. Under Basic, drag and drop a Short text element to your form. Le widget de calcul de formulaire ne fonctionne pas Image 1 Screenshot 60
    3. Click on your Form Calculation widget, and click on the Wand icon. Replace the Multiple choice field to Short Text field.
    4. Then click on Save. Le widget de calcul de formulaire ne fonctionne pas Image 2 Screenshot 71

    Now, let's set up the Conditions.

    1. In Form Builder, click on Settings at the top.
    2. Click on Conditions on the left, and click on Add condition.
    3. Select Update/Calculate Field.

    Copy the conditions as shown below:

    Le widget de calcul de formulaire ne fonctionne pas Image 3 Screenshot 82

    Le widget de calcul de formulaire ne fonctionne pas Image 4 Screenshot 93

    Here's my result:

    Le widget de calcul de formulaire ne fonctionne pas Image 5 Screenshot 104

    Here's my demo form. You can clone it to test or inspect.

    Give it a try, and let us know if you need more help.

  • mysalesmachine
    Répondu le 20 mars 2024 à 17:45

    Parfait ça marche ainsi !

    Merci beaucoup pour vos explications.