TSFormBot | TSFormBot ... a Google Form Hangouts Chat Bot | Bot library
kandi X-RAY | TSFormBot Summary
kandi X-RAY | TSFormBot Summary
TSFormBot is an Apps Script powered Google Form Hangouts Chat Bot which creates form submission webhook notifications for Hangouts Chat Rooms. TSFormBot has been upgraded to include form responses. Looking for the previous version of TSFormBot? See v1.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TSFormBot
TSFormBot Key Features
TSFormBot Examples and Code Snippets
Community Discussions
Trending Discussions on TSFormBot
QUESTION
I'm trying to make a Google Hangouts Chat Bot that detects when a form has been filled in, and sends the responses of the most recent form submission to Hangouts Chat using a bot. I have built this off existing code (my JS / GAS knowledge is near zero), mainly based on the GitHub TSFormBot repo. The issue is, it is sending each response invidiually as a different message, instead of 1 single message with all of the content.
For exmaple, a 4 question form causes the bot to send 4 individual replies, with one of the different answers in each. Could you please help me see where I'm going wrong, so I could get the content of all 4 answers in a single response?
Thanks!
Current code:
...ANSWER
Answered 2020-Feb-26 at 13:35The issue you're having it's because, inside your for
loop, you are sending every time your payload using UrlFetchApp.fetch(url, options);
, therefore you need to do it in this way:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TSFormBot
Create a new Google Form
From within the new form, select the More (three dots) > Script editor menu
Delete the code in Code.gs from the script editor
Click on the Untitled project project name, and rename to TSFormBot
Copy and paste the code into the script editor
Select the menu File > Save all
Close the Script editor window
Reload the Form
Open existing TSFormBot enabled Google Form
From within the form, select the More (three dots) > Script editor menu
Delete the code in Code.gs from the script editor
Copy and paste the code into the script editor
Select the menu File > Save all
Select the Run > Enable new Apps Script runtime powered by V8 (if V8 is not already enabled)
Select the Edit > Current Project's Triggers
Delete any existing project From form - On form submit triggers (click the More > Delete trigger menu to the right of each trigger to delete)
Close the Project Triggers window
Close the Script editor window
Reload the Form
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page