google apps script - Find all Values on the event handler as the parameter e -
i have form , want values of eventinfo on array , possible ?
i have :
function dopost(eventinfo) { var submited = eventinfo.values; logger.log(submited); // undefined logger.log(eventinfo.parameter) // informations // code return app; }
i use :
logger.log(eventinfo.parameter);
i have console:
{d machines tank repair=interesting, appid=..., ds pad ownership=rejected, alloy output heating system=implemented, dip coating module leak detection=implemented, zirkonium pills=implemented, gm1xs=, lib=..., theory of constraints training=interesting, dspc spheric lens reuse=interesting, formid=form, token=..., hardcoat - connecting processes=rejected, service=..., varnish consumption reduction=implemented, water saving in generator cleaning=interesting}
for exemple , have : water saving in generator cleaning=interesting
how can use automatically because want array ?
array[0][0] = water saving in generator cleaning; array[0][1] = interesting;
a quick search on google returns lot of results...
an example using onedit in spreadsheet :
function onedit(e) { for(var propertyname in e) { logger.log(propertyname + ' = ' + e[propertyname]); } }
Comments
Post a Comment