Use Apps Script in Google Forms to dynamically update item quantity dropdowns based on available stock
This tutorial explains how to create a dynamic order form in Google Forms.
- The order form uses dropdowns for customers to choose the quantity of an item that they want to order.
- The Apps Script code connects the Google Form to the linked Google Sheet with form responses.
- The total (starting) stock for each item is set in the spreadsheet by the seller.
- The remaining stock for each item is calculated in the spreadsheet based on submitted orders.
- The dropdowns in the order form are updated so that the maximum quantity of an item that a customer can order is the remaining stock of that item.