Difference between revisions of "Google Forms"
Jump to navigation
Jump to search
Line 72: | Line 72: | ||
{{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.}} | ||
+ | <br> | ||
+ | ===Request Reference=== | ||
+ | [[File:ScriptRequestReference.png|right|border|link=]] | ||
+ | In the section [[Create Your Google Form]] you will have added your first question to your form. This question titled ''Request Reference'' is the link between this form and an existing request in Service Manager. If you wish to have a different title than ''Request Reference'' you will need to update th | ||
+ | {{bullet1|<nowiki>itemResponses[i].getItem().getTitle() === "Request Reference"</nowiki>|Make sure that the text ''Request Reference'' matches the title of the question in the form that will hold the reference ID}} | ||
<br> | <br> | ||
===Questions and Custom Fields=== | ===Questions and Custom Fields=== | ||
Line 108: | Line 113: | ||
{{TOP}} | {{TOP}} | ||
{{Section| | {{Section| | ||
− | == Create a Pre-filled Link == | + | == Create a Pre-filled Link == |
+ | |||
|}} | |}} | ||
{{TOP}} | {{TOP}} |