How to publish a Google Form to the domain only

20 views
Skip to first unread message

Phil Bainbridge

unread,
Oct 14, 2025, 4:33:04 AM (2 days ago) Oct 14
to Google Apps Script Community
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."

They also refer to: Publish and manage 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've created a simple Form and Response Sheet here to make a copy of to show the code being used.

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
Reply all
Reply to author
Forward
0 new messages