Skip to content

Can we use App scripts code to create a google from and post response in google spreadsheet. #576

Closed

Description

@varunpal7

Can we use the app scripts code to create google forms and post the response from google form into google spreadsheet.Is there any rest API's exposed to do so or any sample app script code ?

Activity

  1. changed the title [-]Can we use App scripts in google forms to create a from and post response in google spreadsheet.[/-] [+]Can we use App scripts code to create a google from and post response in google spreadsheet.[/+] on May 12, 2016
  2. self-assigned this
    on Jun 9, 2016
  3. jmdobry commented on Jun 9, 2016

    @jmdobry
    Contributor

    For example (from https://developers.google.com/apps-script/reference/forms/form):

    // Open a form by ID and create a new spreadsheet.
     var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
     var ss = SpreadsheetApp.create('Spreadsheet Name');
    
     // Update form properties via chaining.
     form.setTitle('Form Name')
         .setDescription('Description of form')
         .setConfirmationMessage('Thanks for responding!')
         .setAllowResponseEdits(true)
         .setAcceptingResponses(false);
    
     // Update the form's response destination.
     form.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());

    Responses to a form are posted to the form's destination spreadsheet.

  4. saumyasinghal747 commented on Dec 1, 2020

    @saumyasinghal747

    How can I do this using the Node.js client?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions