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.
W związku z wprowadzeniem szczegółowych opcji kontroli nad tym, kto może odpowiadać na formularze Google, formularze muszą zostać opublikowane przed udostępnieniem ich osobom, które mają je wypełnić. Aby mieć pewność, że istniejące skrypty nie ulegną uszkodzeniu, obecnie formularze tworzone przez interfejs API są domyślnie publikowane. Jednak aby dostosować działanie usługi do interfejsu użytkownika, formularze tworzone przez interfejs API po 31 stycznia 2026 r. będą tworzone w stanie nieopublikowanym. Zanim będą mogły przyjmować odpowiedzi, musisz je opublikować.
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 stycznia 2026 r. będą domyślnie nieopublikowane i nie będą otrzymywać odpowiedzi.
Jakie zmiany musisz wprowadzić
Formularz utworzony przez interfejs API po 31 stycznia 2026 r. będzie miał stan „nieopublikowany”. Od teraz musisz wyraźnie publikować formularze utworzone przez interfejs API, używając 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 kontrolować, kto odpowiada na Twój formularz, udostępniając go określonym użytkownikom. Aby udostępnić formularz użytkownikom, możesz użyć metody permissions.create
. Więcej informacji znajdziesz w artykule Udostępnianie formularza większej liczbie osób.
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-07-01 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-01 UTC."],[],[],null,["# API Changes to Google Forms\n\nWith 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 January 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------------------------------\n\nIf no action is taken, then new forms created using APIs after January 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\n- Forms created by API after January 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."]]