Enum DestinationType

ZielTyp

Eine Aufzählung, die die unterstützten Typen von Formularantwortzielen darstellt. Bei allen Formularen, auch bei denen, für die kein Ziel explizit festgelegt ist, wird eine Kopie der Antworten im Antwortspeicher des Formulars gespeichert. Auf Zieltypen kann über FormApp.DestinationType zugegriffen werden.

Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel: 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());

Attribute

AttributTypBeschreibung
SPREADSHEETEnumEine Google Tabellen-Tabelle als Ziel für Formularantworten.