Comment Jotform traite la réponse JSON du webhook ?

  • monadressemel
    Demandé le 21 février 2025 à 15:56

    Bonjour,

    Jotform semble ne pas gérer correctement les réponses JSON de mon webhook pour remplir les variables dynamiques dans l’URL de la page de remerciement : rien ne passe.

    Pouvez-vous m'expliquer comment Jotform traite la réponse JSON du webhook ?

    Merci

    Regards

  • Richie Jotform Support
    Répondu le 22 février 2025 à 01:57

    Hi Francis,

    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, to clarify, do you want to prefill another form or your webpage with data form the thank you page? I checked a cloned version of your form and it seems that you're trying to redirect your thank you page to your page. Do you want to send data through your thank you page? Can you explain a bit on how you want to use the thank you page? If you want to pass HTTP data, then you need to enable Redirect with POST. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Thank You Page in the menu on the left side of the page.
    3. Then, click on the Redirect with HTTP Post toggle to ON.
      Comment Jotform traite la réponse JSON du webhook ? Image 1 Screenshot 20

    Let us know if there’s anything else we can help you with.


  • monadressemel
    Répondu le 22 février 2025 à 12:55

    Voici mon flow :

    1. Le client soumet le formulaire sur Jotform

    2. Mon serveur sur mon VPS (server.js) reçoit les données grâce au webhook Jorform, et génère un lien de paiement avec NOWPayments

    3. Mon serveur envoie une réponse à Jotform contenant ce lien de paiement

    4. Dans Jotform, la page de remerciement est configurée avec : http://2xx.1xx.2xx.2xx/redirect.html?paymentLink={payment_url}

    {payment_url} est remplacé automatiquement par le vrai lien reçu de NOWPayments.

    5. Jotform redirige l'utilisateur vers redirect.html qui est sur mon VPS, en incluant le lien de paiement dans l'URL

    6. Dans redirect.html, on récupère ce lien et on redirige l'utilisateur.

    Malheureusement, Jotform ne veut pas traiter la réponse. Comment puis-je faire pour que Jotform accepte/enregistre le lien que mon serveur lui transmet ???


  • Richie Jotform Support
    Répondu le 23 février 2025 à 04:07

    Hi Francis,

    Thanks for the added information. It seems you would like to pass the data to your form and use that in the thank you page. You may do this by getting the full source code in the form and add your script code to receive the data into your form. Unfortunately, this is out of our scope as we don't provide custom form creation, but you're welcome to work with a third party who may be able to help you. You can check out our Jotform Solutions Partner Directory for a list of consultants who've asked to be included. 

    You can get in touch with the right Solutions Partner for you by sorting them by location, type of service, industry, language support, or partner tier. Just fill out the contact form for the Jotform partner you'd like to work with, so they can make the necessary preparations to help you. Also Jotform has officially joined forces with Fiverr, a leading global platform for freelance services. With the Jotform and Fiverr partnership, you'll have access to an extensive network of skilled freelancers offering services. You can visit the Jotform and Fiverr partnership page to explore the services available.

    Keep in mind, though, that these parties operate independently of Jotform, so we assume no responsibility or liability for their work or their actions. 

    Let us know if you have any other questions.Comment Jotform traite la réponse JSON du webhook ? Image 1 Screenshot 20

  • monadressemel
    Répondu le 23 février 2025 à 15:40

    1) Donc il n'est pas possible de transmettre une donnée comme une url par exemple, de mon VPS vers un champs caché de Jotform ?

    2) Donc, je dois récupérer le code de mon formulaire dans Jotform / Mon Formulaire / Publier / Intégrer / Intégrer / Copier le code, puis mettre ce code dans mon serveur personnel VPS, y ajouter mon code de script pour recevoir les données dans mon formulaire, c'est bien cela ?

    3) Quelles différences y a-t-il entre récupérer le code source dans ? :

    • Jotform / Mon Formulaire / Publier / Intégrer / Intégrer / Copier le code
    • Jotform / Mon Formulaire / Publier / Intégrer / Code source / Copier le code
    • Jotform / Mon Formulaire / Publier / Intégrer / Code source / Télécharger le code source

    4) Pourquoi en faisant cela "Jotform / Mon Formulaire / Publier / Intégrer / Code source / Télécharger le code source", on a du CSS et du JS ?

    Merci d'avance pour votre aide ?

  • Ronald Jotform Support
    Répondu le 23 février 2025 à 18:12

    Hi Francis,

    Unfortunately, your question is already outside our scope as it requires more development to achieve, which is why Richie advised you to reach out to a dedicated Partner consultant.

    As for your question, yes, you have to retrieve the source code of your form if you want to have more detailed customization using external CSS and JavaScript codes. Meanwhile, the code you're looking for customization is the source code version, not the embed or iframe code. The source code contains all the functions and CSS needed to run your form locally and to insert modifications into it. Getting the code of your form is easy. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Publish.
    2. In the menu on the left side of the page, click on Embed.
    3. Select the Source Code option.
    4. Click Copy Code or Download Source Code.

    Comment Jotform traite la réponse JSON du webhook ? Image 1 Screenshot 20

    You can also check this guide to know more about this.

    Reach out again if you have any other questions.

  • monadressemel
    Répondu le 24 février 2025 à 12:15

    1) Donc il n'est pas possible de transmettre une donnée comme une url par exemple, de mon VPS vers un champs caché de mon formulaire dans Jotform ?

  • Ronald Jotform Support
    Répondu le 24 février 2025 à 12:57

    Hi Francis,

    It would not be possible with Jotform itself as the platform have a limitation on external scripts. However, having the Source code of the form would allows you to extend its capabilities by having external JavaScript added on it.

    Keep us updated and let us know if you need any more help. 

Votre réponse