• Resolved Adam Cheers

    (@ajcheers)


    I am setting up a webhook integration to Apps Script that is supposed to add users to a Google Group based on the email information from the Forminator Form. In this process, something changed and when I created a new deployment in Apps Script – updating the link in the Forminator Integration page when trying to add the “Webhook” integration always results in the “Failed to process request : Bad Request” error. The code in the Apps Script (linked to Web App URL) is currently shown below:

    function doGet(e) {
    return ContentService.createTextOutput('OK')
    .setMimeType(ContentService.MimeType.TEXT);
    }

    function doPost(e) {
    return ContentService.createTextOutput('OK')
    .setMimeType(ContentService.MimeType.TEXT);
    }

    This form previously accepted submissions properly and sent the data to the webhook successfully (as is shown in the logs), but now even the most simple of scripts like I have reverted to using (like the one above) results in this error which does not allow me to setup the integration.

    Any help is greatly appreciated.

    Cheers, Adam

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Adam Cheers

    (@ajcheers)

    A server-side issue resulting in the site being unable to access outbound requests to the appropriate script.google- pages was occuring and they were being blocked

    Replace your return line with:

    return HtmlService.createHtmlOutput("");

    This returns:

    • HTTP status: 200
    • Body: empty HTML
    • No JSON encoding
    • No redirect
    • No metadata

    This is the ONLY response Forminator ALWAYS accepts.

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @ajcheers,

    I apologise for the delay in response. We just received the notification. Since the topic is already marked as resolved and is quite old, please let us know if you need any further assistance.


    Kind Regards,
    Imran Khan

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.