Adapter le montant à payer en fonction d'un choix de l'utilisateur

  • Jung_sebastien
    Demandé le 1 octobre 2023 à 05:54

    Bonjour,

    Dans mon formulaire je demande la profession de l'utilisateur.

    Si la réponse est médecin, le prix à payer est 260 sinon 150 euro

    Est-il possible de calculer le champ à payer ?

    Merci d'avance,

    Sébastien Jung

    Jotform Thread 5589174 Screenshot
  • Mary Jotform Support
    Répondu le 1 octobre 2023 à 06:22

    Hi Jung_sebastien,

    Thanks for reaching out to Jotform Support. Unfortunately, our French Support agents are busy helping other Jotform users at the moment. 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, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. Instead of placing a suggested amount in the payment box, you can pass the value from the dropdown fields directly to the form calculation widget and get the price from there.

    Adapter le montant à payer en fonction dun choix de lutilisateur Image 1 Screenshot 70

    Also, I saw that you enabled the calculation option on the dropdown field. There's a value per profession.

    Adapter le montant à payer en fonction dun choix de lutilisateur Image 2 Screenshot 81

    You'll need to add a Form Calculation widget to get the values from the dropdown field and transfer it to your payment integration.

    • In the Form Builder page, click the Add form Element.
      Adapter le montant à payer en fonction dun choix de lutilisateur Image 3 Screenshot 92
    • Go to the widgets tab and look for the Form Calculation widget.
    • Add it to the preferred area in the form.
    • Click the wand icon and add the dropdown field.
      Adapter le montant à payer en fonction dun choix de lutilisateur Image 4 Screenshot 103
    • Go back to your payment integration and switch off to suggest an amount option and select the form calculation to Get Price From.
      Adapter le montant à payer en fonction dun choix de lutilisateur Image 5 Screenshot 114

    That's it. The value that will show on the payment box will be the value set per profession selected.

    Adapter le montant à payer en fonction dun choix de lutilisateur Image 6 Screenshot 125

    Let us know if you need any other help.