// Periodic customer satisfaction survey (8 questions) // How to use: open https://script.google.com, start a new project, paste this file over the sample code and press Run. // Google asks you to allow the script to create a form. The form is saved in your Google Drive and its links appear in the execution log. function createSurvey() { var form = FormApp.create("Periodic customer satisfaction survey (8 questions)"); form.setDescription("You have been using [Product] for a while, and we would like to know how it is going. Eight questions, about three minutes. Your answers go straight to the team that builds [Product]."); form.setConfirmationMessage("Thank you for your time. We read every answer, and we will write back if you said we could."); form.addScaleItem().setBounds(1, 5).setLabels("Very dissatisfied", "Very satisfied").setTitle("Overall, how satisfied are you with [Product]?").setRequired(true); form.addScaleItem().setBounds(1, 5).setLabels("Very dissatisfied", "Very satisfied").setTitle("How satisfied are you with how reliably [Product] works?").setRequired(true); form.addScaleItem().setBounds(1, 5).setLabels("Very dissatisfied", "Very satisfied").setTitle("How satisfied are you with how easy [Product] is to use?").setRequired(true); form.addScaleItem().setBounds(1, 5).setLabels("Very dissatisfied", "Very satisfied").setTitle("How satisfied are you with the help you get when you contact support?").setHelpText("Skip if you have never contacted support").setRequired(false); form.addScaleItem().setBounds(1, 5).setLabels("Very dissatisfied", "Very satisfied").setTitle("How satisfied are you with what you get for the price you pay?").setRequired(true); form.addParagraphTextItem().setTitle("What is the one thing we should improve first?").setRequired(false); form.addParagraphTextItem().setTitle("What would you miss most if you could no longer use [Product]?").setRequired(false); form.addMultipleChoiceItem().setChoiceValues(["Yes","No"]).setTitle("May we write to you about your answers?").setRequired(true); Logger.log("Edit your form: " + form.getEditUrl()); Logger.log("Share this link: " + form.getPublishedUrl()); }