Edit google form source while keeping it within the google environment

15,810

Solution 1

It is possible to do that but it is not a very "clean" way to do it. You can create a form with Google form and using HtmlService to parse through the html with the link and from there you can add in more html/javascript with it. This trick is possible for now but if there is any changes to Google Form html structure, it will break this.

Solution 2

Ok I figured this. You can simply take the section within ... and paste it to your webpage and it will still interact with its Google data source, the spreadsheet. There after you can use any web tool to edit the form itself, like html, javascript, ajax etc. But there are a few things you should know about this method:

  1. If you want to add a new field you will have to add that in the actual google form and then once again copy the ... and redo all the work you did on it before. So this is a bad method if you know that you gonna keep adding new fields all the time.

  2. Make sure you don't change any google related terms like class names of the tags, form action parameters etc. I think the kind of work that you can do over it, which is perfectly acceptable are those that allow changing the look and feel of the form and its peripheries.

Solution 3

Sort of... You can create a very sophisticated form using Google Apps Script. For someone with experience and a library this can be as short as an hour. If you're starting from scratch it will take considerably more time (the learning curve for an Apps Script novice can be a bit high).

We have found that if we are delivering the custom form to people within our domain Google Apps Script works great. If we need to collect information from the general public and can collect it using a regular Google form, that also works great. However, if we need to collect information using an Apps Script from people outside of our domain we use another service (not Google).

Best of luck.

Share:
15,810
Rijo Simon
Author by

Rijo Simon

I am a Xoogler, now working as Sr. Software Engineer at VMware. I love Python and am always thinking about how to develop the next great thing.

Updated on June 14, 2022

Comments

  • Rijo Simon
    Rijo Simon about 2 years

    Is it possible to edit Google Forms to allow data validation and use of some javascript or similar tools on it to give an advanced feel to the form. While making sure that the form isn't removed from the google environment or atleast is able to feed it's data to a google spreadsheet.