Hi all
In September Google announced that "
After March 31, 2026, forms created by API will default to an unpublished state. Your users will need to publish their forms by using Google Forms APIs before they can be shared with responders."
We want to create some Google Forms that are published to the domain only. Yet none of the documentation works in achieving this.
Has anybody been able to successfully do this for their domain?
Resources
I'll also paste it below (note you need to enable the Drive API):
function setAnyoneInDomain() {
// your Form Id
var formId = "YOUR FORM ID";
// set Form permissions via Drive API
var options = {
domain: "YOUR DOMAIN",
type: "domain",
role: "reader",
view: "published"
};
Drive.Permissions.create(options, formId);
};
Kind regards
Phil