I have an application running under Appscript
app.gs
function doGet(e) {
return HtmlService.createHtmlOutputFromFile('form.html');
}
function getInputNames(form){
var key = Object.keys(form);
return key;
}
form.html
<form id="myForm">
<input name="Name" id="myName" type="text"><br>
<input name="Data" id="mydata" type="text"><br>
<input name="Fata" id="myFata" type="text">
<input type='submit' value='Upload' onclick="this.value='Grabbing Names..';google.script.run.withSuccessHandler(fileUploaded).getInputNames(this.parentNode);return false;">
</form>
Expected Output
Name,Data,Fata
What Result I Get Always Random
Data,Fata,Name or Fata,Fata,Name
the problem is that the object is always randomly sorting which is a big problem for me is there a way to fix this issue?