Enum DestinationType

Destination Type

An enum representing the supported types of form-response destinations. All forms, including those that do not have a destination set explicitly, save a copy of responses in the form's response store . Destination types can be accessed from Form App.DestinationType .

To call an enum, you call its parent class, name, and property. For example, FormApp.DestinationType.SPREADSHEET .

 // Open a form by ID and create a new spreadsheet. 
 const 
  
 form 
  
 = 
  
 FormApp 
 . 
 openById 
 ( 
 '1234567890abcdefghijklmnopqrstuvwxyz' 
 ); 
 const 
  
 ss 
  
 = 
  
 SpreadsheetApp 
 . 
 create 
 ( 
 'Spreadsheet Name' 
 ); 
 // Update the form's response destination. 
 form 
 . 
 setDestination 
 ( 
 FormApp 
 . 
 DestinationType 
 . 
 SPREADSHEET 
 , 
  
 ss 
 . 
 getId 
 ()); 

Properties

Property Type Description
SPREADSHEET
Enum A Google Sheets spreadsheet as a destination for form responses.
Create a Mobile Website
View Site in Mobile | Classic
Share by: