I am trying to attach a google form to a google spreadsheet using the script, i went through the Spreadsheet documentation and i found a getFormUrl() function but no setFormUrl(), if someone could help me i would really appreciate it.
0
votes
2 Answers
1
votes
0
votes
I went through the Google Form documentation and i found this :
// Open a form by ID and create a new spreadsheet.
var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
var ss = SpreadsheetApp.create('Spreadsheet Name');
// Update the form's response destination.
form.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());
Works fine for me.