Difference between revisions of "Google Forms"
Jump to navigation
Jump to search
Line 69: | Line 69: | ||
=== Authentication === | === Authentication === | ||
At the top of the Script there are 2 key lines that needed editing | At the top of the Script there are 2 key lines that needed editing | ||
− | [[file:ScriptAuthentication.png|right|border]] | + | [[file:ScriptAuthentication.png|right|border|link=]] |
{{bullet1|<nowiki>var apiKey = 'yourapikey';</nowiki>|The text ''yourapikey'' needs to be replaced with the key that we generated in the section: [[#Setup an API Key|Setup an API Key]]. Be sure to keep the quotation marks.}} | {{bullet1|<nowiki>var apiKey = 'yourapikey';</nowiki>|The text ''yourapikey'' needs to be replaced with the key that we generated in the section: [[#Setup an API Key|Setup an API Key]]. Be sure to keep the quotation marks.}} | ||
{{bullet1|<nowiki>var instanceId = 'yourinstanceid';</nowiki>|The text 'yourinstanceid' needs to be replaced with your instance ID. This can be found within the URL that connects you to your Hornbill. This should be all lowercase. Be sure to keep the quotation marks.}} | {{bullet1|<nowiki>var instanceId = 'yourinstanceid';</nowiki>|The text 'yourinstanceid' needs to be replaced with your instance ID. This can be found within the URL that connects you to your Hornbill. This should be all lowercase. Be sure to keep the quotation marks.}} | ||
===Questions and Custom Fields=== | ===Questions and Custom Fields=== | ||
− | [[File:ScriptCustomFields.png|right|border]] | + | [[File:ScriptCustomFields.png|right|border|link=]] |
Each question that you add to a Google Form can be mapped to a request's custom field. The script uses a case statement to identify the Form question using its title and map it to custom field where the response will be stored. | Each question that you add to a Google Form can be mapped to a request's custom field. The script uses a case statement to identify the Form question using its title and map it to custom field where the response will be stored. | ||
In this example there are three questions | In this example there are three questions | ||
Line 83: | Line 83: | ||
===Update Status=== | ===Update Status=== | ||
The ''Update Status'' function provide two updates that can be made to a request. | The ''Update Status'' function provide two updates that can be made to a request. | ||
− | [[File:ScriptUpdateStatus.png|right|border]] | + | [[File:ScriptUpdateStatus.png|right|border|link=]] |
{{bullet1|Status|The default in this script is set to ''Open''. Options can include New, Open, Resolved, and Closed.}} | {{bullet1|Status|The default in this script is set to ''Open''. Options can include New, Open, Resolved, and Closed.}} | ||
{{bullet1|Update Timeline|A Timeline entry will be added to a request once the Form has been submitted. Here you can change the text that will be displayed in the Timeline of the request}} | {{bullet1|Update Timeline|A Timeline entry will be added to a request once the Form has been submitted. Here you can change the text that will be displayed in the Timeline of the request}} |