Skip to content

Unofficial Google Form API to create custom design for any Google Form

Notifications You must be signed in to change notification settings

Graphicito/Custom-Google-Form-Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Form Customizer

Beautify and customize your Google Form with custom HTML and CSS.


Install the package

npm i custom-gform

After installing the package, run npm install to install all dependencies.


API

API Description
get Retrieve all form data in the same order listed
getByCategory Retrieve all form data and categorize the questions into its own category (short answers, multiple choice...)

Supported Question Types

0: Short answers
1: Paragraph
2: Multiple Choice
3: Drop Down
4: Checkboxes  
5: Linear Scale

Example .get Output

    // Works with both edit and preview link
    const formData = await get("Replace with your Google Form link");

    {
        formTitle: 'Custom G Form',
        formDescription: 'Form Description',
        questions: [ 
            { 
                entry: 'entry.159023240',
                title: 'Multiple choice',
                description: 'MC Description',
                choices: [ [Object], [Object], [Object] ],
                required: false 
            },
            { 
                entry: 'entry.1862994755',
                title: 'Multiple choice',
                description: 'MC Description REQUIRED',
                choices: [ [Object], [Object] ],
                required: true },
            { 
                entry: 'entry.1536591222',
                title: 'Short Answer',
                description: 'Description: REQUIRED',
                required: true 
            }
        ]
    }

Example .getByCategory Output

    // Works with both edit and preview link
    const formData = await getByCategory("Replace with your Google Form link");
    { 
        formAction: 'https://docs.google.com/forms/u/0/d/e/1FAIpQLSeHM3lr79IGiu57NR6lwUMqBZDKsp9C5IpzRApgLfdZX2gwkw/formResponse',
        formTitle: 'Custom G Form',
        formDescription: 'Form Description',
        questions: { 
            shortAnswers: [ [Object], [Object] ],
            paragraphs: [ [Object], [Object] ],
            multipleChoice: [ [Object], [Object] ],
            dropDown: [ [Object] ],
            checkBoxes: [ [Object], [Object] ],
            linearScale: [ [Object] ] 
        } 
    }

Return Object Info

Key Description
formAction POST api to submit the form response
entry Use this in the name attribute of each form input
required Check for required form field

Vue + Bootstrap Example

Check our the examples/vue-bootstrap.vue folder for example usage


Credits

Custom GForm is created and maintained by Graphicito. For custom web development solution or customization, contact us at Contact Graphicito.

About

Unofficial Google Form API to create custom design for any Google Form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published