Webhook app is it not hitting endpoint created with google script web app?

  • Profile Image
    developer_independencebrothers
    Asked on February 20, 2020 at 07:33 PM

    Why is it not hitting endpoint created with google script web app?



    This is a re-post of a comment on Webhook PHP Script Examples

  • Profile Image
    Jed_C
    Answered on February 21, 2020 at 12:05 AM

    I think google scrip uses JS as the language. You'll probably need server side script (PHP) when passing to your endpoint URL.

    Please check our webhook guide here https://www.jotform.com/help/245-How-to-Setup-a-Webhook-with-JotForm. You can create an endpoint URL via request bin https://requestbin.com/ to test your form and see if it passes and being captured via end point.

    Let us know if you have any questions or if you need further assistance. 

  • Profile Image
    developer_independencebrothers
    Answered on February 21, 2020 at 01:23 AM

    How does webhook cares if the server is running on JS or PHP? The webhook does not even hit the endpoint.

  • Profile Image
    Jed_C
    Answered on February 24, 2020 at 03:54 AM

    I apologize for the late response.

    Yes, it doesn't seem to accept data with Webhook app. You can still use the POST method.

    1). Enable POST in your form.

    2). Add your Google App Script endpoint URL as your redirect thank you page.

    1582534064The Easiest Online Form Builde

    Sample screencast:

    1582534273gappscript_post_test.gif

    Another option is to use jotform's API. 

    ex.

    function myFunction() {

      var response = UrlFetchApp.fetch("https://api.jotform.com/form/formID/submissions?apiKey=xxxxxxx");

      var content = response.getContentText();

      Logger.log(content);

    }

    This allows you to pull data by Form ID. You can check this documentation https://api.jotform.com/docs/#form-id-submissions for reference.