Google-apps-script – Add dynamic questions in Google forms

google-apps-scriptgoogle-forms

I am using google forms to punch orders in my Google Sheets.

Although I am facing a challenge as the number of products is variable.

For example

Question 1: Item Name 
Question 2: Quantity

I want the responder to add as many items and quantities as they want.

Is it possible to do the same with core features or appscripts? If not possible with google forms, is there any other form app to do the same?

Best Answer

You could use sections having each section with three questions

  • Item name
  • Quantity
  • Would you like to add another item? (except in the last section)

The "Would you like to add another item?" question should be one of the types that allow to jump to another section. In case that the respondent choose No, then submit the form.

On the last section you could tell to the respondent that if they want to add more items, they should send a new form submission. You could set your form to show a link to submit another form response in the form submission confirmation page.

References