Unlink form in App Script

159 views
Skip to first unread message

sben...@bbchs.org

unread,
Jul 21, 2021, 11:47:46 AM7/21/21
to Google Apps Script Community
Is there a way to unlink a form from a sheet in app script?  I cannot seem to find it.  

Alex

unread,
Jul 21, 2021, 12:56:28 PM7/21/21
to Google Apps Script Community
You can reverse the action

var formUrl = SpreadsheetApp.getActive().getActiveSheet().getFormUrl();
if (formUrl)
  FormApp.openByUrl(formUrl).removeDestination();

Reply all
Reply to author
Forward
0 new messages