For the additional part, we bare to dynamically amount Slack channels as CheckBoxItem answers. In adjustment to do that we leveraged Slack’s API for approach listing. We additionally bare to amount these answers every time addition opens the Form, so as to ensure the authority of data.
This is a archetypal use case for the “onOpen” trigger. What is bare now is to actualize the action to be triggered from “onOpen”:
In adjustment to amount abstracts from the Slack API, we acclimated the “UrlFetchApp” central the Google App Script, which about is a Network applicant for alien API calls. We additionally created a var pointing to our already created Google Form, by its “id”.
Next step, is to anatomize the channels advertisement acknowledgment and adapt the CheckBoxItem activating answers:
What the cipher aloft does, is to analysis if the acknowledgment from Slack’s API is “ok” and again use a adjustment to abate and accumulate alone the channels we are absorbed in:
Now that we accept the adapted abstracts bare to actualize our answers for the CheckBoxItem, we charge to get a advertence on the distinct Item in our Google Form. This could already be a CheckBoxItem (or article else) or ability not alike abide at all. That leads us to baby for 2 specific cases:
Let’s see how we accomplished that application the Domain archetypal of the Google Forms:
Apparently, for every crazy abstraction or charge out there, seems that there is consistently a solution. All it needs is some additional time and some engineering curiousness and you can absolutely body everything 🙂
You can additionally acquisition all of the aloft cipher in a PR on our Slack’s aggregation Github repository: https://github.com/androiddevs-gr/slack-tools/pull/4
Top 10 Trends In If Then Questions In Google Forms To Watch | If Then Questions In Google Forms – if then questions in google forms
| Encouraged to be able to my own blog, in this time I will show you concerning if then questions in google forms