Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
FormApp.DestinationType.SPREADSHEET.
// Open a form by ID and create a new spreadsheet.constform=FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');constss=SpreadsheetApp.create('Spreadsheet Name');// Update the form's response destination.form.setDestination(FormApp.DestinationType.SPREADSHEET,ss.getId());
Właściwości
Właściwość
Typ
Opis
SPREADSHEET
Enum
arkusz kalkulacyjny w Arkuszach Google jako miejsce zapisywania odpowiedzi.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-12-22 UTC."],[[["`DestinationType` is an enum defining where form responses can be sent, with all responses saved in the form's response store by default."],["It allows specifying a Google Sheet as a destination for form responses using `FormApp.DestinationType.SPREADSHEET`."],["You can set the destination of a form using the `setDestination()` method, providing the destination type and ID."]]],[]]