Populate HTML form from Google Sheets

后端 未结 2 1747
臣服心动
臣服心动 2021-01-21 14:18

I am fairly new to all this but am looking to populate an Apps Script Web App HTML dropdown form entry with names directly from a Google Spreadsheet. So far I have been able to

2条回答
  •  囚心锁ツ
    2021-01-21 15:13

    @HariDas has given a great answer with the back-end .gs code and is all working fine. Your web app code is also fine it just has a little change to be made:

        var options = values[0]; 
        //change it to:
        var options = values;
    

    This will now loop through the array and give all the results as seen here: Web App

    Hope that helps :) Good luck!

提交回复
热议问题