Aby zapewnić twórcom formularzy większą kontrolę nad tym, kto może na nie odpowiadać, wprowadzamy szczegółowe ustawienia dla osób, które je wypełniają. Formularze utworzone za pomocą interfejsu API po 31 stycznia 2026 r. będą domyślnie nieopublikowane. Więcej informacji znajdziesz w artykule
Zmiany w interfejsie API Formularzy Google.
Zmiany w interfejsie API Formularzy Google
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wprowadziliśmy opcje szczegółowej kontroli nad tym, kto może odpowiadać na Formularze Google. W związku z tym formularze muszą być publikowane przed udostępnieniem ich osobom, które mają na nie odpowiadać. Aby mieć pewność, że istniejące skrypty nie przestaną działać, utworzone dziś formularze API są domyślnie publikowane. Aby jednak zapewnić spójność z interfejsem, formularze utworzone przez interfejs API po 31 marca 2026 roku będą tworzone w stanie nieopublikowanym. Musisz je opublikować, zanim będą mogły przyjmować odpowiedzi.
Co się stanie, jeśli nic nie zrobisz
Jeśli nie podejmiesz żadnych działań, nowe formularze utworzone za pomocą interfejsów API po 31 marca 2026 r. będą domyślnie nieopublikowane i nie będą otrzymywać odpowiedzi.
Jakie zmiany musisz wprowadzić
Formularze utworzone przez interfejs API po 31 marca 2026 roku będą tworzone w stanie nieopublikowanym. Od teraz musisz jawnie publikować formularze utworzone przez interfejs API za pomocą metody forms.setPublishedSettings()
.
Aby przetestować publikowanie formularza, najpierw utwórz formularz w stanie nieopublikowanym za pomocą metody forms.create()
.
Następnie opublikuj formularz za pomocą metody forms.setPublishSettings()
.
Możesz określić, kto może odpowiadać na pytania w formularzu, udostępniając go konkretnym użytkownikom. Metody permissions.create
można użyć do udostępniania formularza użytkownikom. Więcej informacji znajdziesz w artykule Udostępnianie formularza większej liczbie użytkowników.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-09-04 UTC.
[null,null,["Ostatnia aktualizacja: 2025-09-04 UTC."],[],[],null,["With the introduction of the granular control options for who can respond to\nGoogle Forms, forms need to be published before sharing with responders. To\nmake sure that existing scripts don't break, today API created forms are published\nby default. However, to align with the product experience in the UI, forms\ncreated by API after March 31, 2026, will be created in an unpublished state\nand you must publish the forms before they can accept responses.\n\nWhat happens if you do nothing\n\nIf no action is taken, then new forms created using APIs after March 31, 2026,\nwill be in an unpublished state by default and won't receive responses.\n\nWhat changes do you need to make\n\n- Forms created by API after March 31, 2026, will be created in an\n unpublished state. Going forward, you will need to explicitly publish the forms\n created by API by using the [`forms.setPublishedSettings()`](/workspace/forms/api/reference/rest/v1/forms/setPublishSettings) method.\n\n- To test publishing a form, first create a form in an unpublished state using the\n [`forms.create()`](/workspace/forms/api/reference/rest/v1/forms/create) method.\n Then publish the form with the [`forms.setPublishSettings()`](/workspace/forms/api/reference/rest/v1/forms/setPublishSettings) method.\n\n- You can control who responds to your form by sharing it with specific users. The [`permissions.create`](/workspace/drive/api/reference/rest/v3/permissions/create) method can be used to share the form with responders. Refer\n to [Share your form with more responders](/workspace/forms/api/guides/publish-form#share-form) for more details."]]