Is there any feature Add New Field using jQuery or Add fields using Javascript in Google forms?
I'm creating a questionnaire application using google apps script and questions and answers will be set from my admin panel (admin decide how many questions will be there). It would be perfect if there was a (+) next to the form to automatically load another text box underneath the form.
Is there any feature Add New Field using jQuery or Add fields using Javascript in Google forms?
I'm creating a questionnaire application using google apps script and questions and answers will be set from my admin panel (admin decide how many questions will be there). It would be perfect if there was a (+) next to the form to automatically load another text box underneath the form.
Share Improve this question edited Dec 3, 2016 at 18:54 Wicket 38.3k9 gold badges77 silver badges192 bronze badges asked Aug 29, 2012 at 12:38 Viral ShahViral Shah 2,2465 gold badges22 silver badges36 bronze badges3 Answers
Reset to default 6 +50I founded the perfect reason for this why it's unable to add dynamic fields with the Google Forms because Google Forms applications are totally bonded with the spread sheets
All the Forms having individual spreadsheets there.
So, it's impossible to generate dynamic fields in the Google forms because of strongly associated with the spreadsheet so.
This we can say the static relation between Google Forms and Spreadsheets.
I think you want to build a new page that can submit to a Google spreadsheet using Using jQuery with JSON and Google Spreadsheets Data API
Short answer
Yes you can create/edit a form programmatically by using the Forms Service Class Form
Note: At this time it's not possible to make changes to form / questions based on user input like making cascading dropdowns.
Extended answer
The following are the specific methods to add each question type to a Google form.
Method Return type Brief description -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- addCheckboxItem() CheckboxItem Appends a new question item that allows the respondent to select one or more checkboxes, as well as an optional "other" field. addDateItem() DateItem Appends a new question item that allows the respondent to indicate a date. addDateTimeItem() DateTimeItem Appends a new question item that allows the respondent to indicate a date and time. addDurationItem() DurationItem Appends a new question item that allows the respondent to indicate a length of time. addGridItem() GridItem Appends a new question item, presented as a grid of columns and rows, that allows the respondent to select one choice per row from a sequence of radio buttons. addListItem() ListItem Appends a new question item that allows the respondent to select one choice from a drop-down list. addMultipleChoiceItem() MultipleChoiceItem Appends a new question item that allows the respondent to select one choice from a list of radio buttons or an optional "other" field. addParagraphTextItem() ParagraphTextItem Appends a new question item that allows the respondent to enter a block of text. addScaleItem() ScaleItem Appends a new question item that allows the respondent to choose one option from a numbered sequence of radio buttons. addTextItem() TextItem Appends a new question item that allows the respondent to enter a single line of text. addTimeItem() TimeItem Appends a new question item that allows the respondent to indicate a time of day.
See also
- Can I fill in TextItem by Google apps script?