I'm using google script in google sheet in order to populate the cell with data that I entered. First I made a form by using html where I store data I entered as object in html (image below).
then i call the data I stored in html code with javascript in order to populate the targeted sheet(the last row of the first column)(image below), and it worked.
But then, I created the same form with the same code html but for now I want to populate the last row of the second column. I'm trying using the same code appendRow([null,data.name]), but the problem is it will populate the last row of the sheet. I tried to use getRange then setValues but it doesnt work.
Please help