Use a google form to update existing google spreadsheets -


i'm trying build google form fills out cells of existing google spreadsheet responses on google form. need of answers on google form come spreadsheet in drop down style menu.

the existing spreadsheet being used organization have members log information on weekly basis, however, members continue fill out form incorrectly no matter how many times i've corrected them. reason i'm trying make process more automated.

the way current spreadsheet set there multiple sheets different divisions of organization. in each sheet there column dedicated names in division, different name on each row of column. there columns dedicated specific weeks, week 1 information put column d , e, week 2 info in f , g, etc.

ex:

# | name | percent |... week 1 .... |... week 2 .... | ....

1 |.. bob..| 0%..... ..| info 1| info 2 | info 1| info2..|

2 | ..joe..| 99%......| info1..................................

i'd able to:

  1. make first question of form drop down menu selecting division, make rest of questions info based off sheet corresponding division.
  2. second question drop down menu select name. names based off names listed in existing name column of spreadsheet.
  3. a drop down menu select specific week submitting information for.
  4. a fill in box question fill in "info 1"
  5. a fill in box question fill in "info 2"

when submitted form find correct sheet based off (1), find correct row based off (2), find correct column based off (3), copy (4) , (5) corresponding cells.

is possible this? or need create separate form each division? can provide me appreciated. don't have familiarity google scripting, although experienced c++ , have basic working knowledge of scripting in python.

this difficult implement (but not impossible) stock google forms. can't use google apps script manipulate display of form in response user actions can javascript on form you've coded scratch.

google apps script can generate , manipulate form in same way can in form editor, , can triggered when form submitted take action response, can not interact user directly.

to achieve want have few options.

you set multi-page google form logic branches forms behaviour want, use apps script triggered onformsubmit() take care of moving data appropriate locations.

or can skip using stock google forms altogether , instead present form using google apps script published web-app, gives full control on form (html, css & javascript) displayed user, not leverage of google form features. render form doget() , process submission dopost().

a third approach hybrid of two, set several individual google forms, , use apps script published web app display first drop down , direct user appropriate form. have scripts triggered onformsubmit() of each of google forms handle moving data around.

see following:

https://developers.google.com/apps-script/guides/triggers/events#google_forms_events

https://developers.google.com/apps-script/guides/web#deploying_a_script_as_a_web_app https://developers.google.com/apps-script/guides/html/


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -