How to pass form data in webhooks ?

  • AppCroNix
    Asked on April 26, 2018 at 12:36 PM

    Hello,

    How to pass form field data in webhooks?


    Thank You.

  • David JotForm Support
    Replied on April 26, 2018 at 1:40 PM

    It seems you have another older thread for the same question:

    https://www.jotform.com/answers/1211508-How-to-pass-form-data-in-webhook-

    The answers given in that thread should still be valid.

  • AppCroNix
    Replied on April 28, 2018 at 6:28 AM

    Yes, but that solution is not working. As RequestBin stop working.

  • liyam
    Replied on April 28, 2018 at 8:15 AM

    Hello,

    Can you provide us details on the issue such as the actual form involved? Also, would it be alright if we can run tests with your form if in case we are not able to replicate the failure of the webhook integration on our end?

    Thanks.

  • AppCroNix
    Replied on April 28, 2018 at 10:25 AM

    Form :- https://form.jotform.me/81155009884460 (this a simple demo form)

    As you can see on this form, we collect contact number from users.

    When user submit there number. We want to send SMS conformation to that number.

    So is there any way we can directly use form data in webhooks with help of "UNIQUE NAME” or "FIELD IDs”.

     



  • Adrian
    Replied on April 28, 2018 at 12:12 PM

    I have added a RequestBin URL as a WebHook to your form, and the requests are being sent as expected.

    I made a test submission by typing 1234567890 in the number field and the request was received in the RequestBin.

    How to pass form data in webhooks ?  Image 10

    I can see that you have added a Pastebin URL as a WebHook in your form. That will not work.

    How to pass form data in webhooks ?  Image 21

    It seems like you have used the code from the example 2 in this help guide.

    Webhook-PHP-Script-Examples

    Pastebin was used there only to show you a sample code. You need to handle the request on your own server. This requires programming knowledge.

    http://www.youtube.com/watch?v=Rz_DSt-nSO8