I'm currently building a sheet which institutes a modal/sidebar. My issue is that I really need multiple values passed from a function in my *.gs file.
Currently I know I can implement this:
google.script.run.withSuccessHandler(myFunction).gasFunction('argument value');
Index.html
<html>
<head></head>
<body>
<script>
var hello = 'Not Working';
google.script.run.withSuccessHandler(indexLog).logMe('hello');
function indexLog(hello) {
console.log(hello);
}
</body>
</html>
GAS SCRIPT
function logMe(hello) {
return hello;
}
So I'm in a position where I'm running a continuous method multiple times in order to return all arguments needed, ie.
google.script.run.withSuccessHandler(indexLog).logMe('value 1');
google.script.run.withSuccessHandler(indexLog).logMe('value 2');
google.script.run.withSuccessHandler(indexLog).logMe('value 2');
My values would be cell references, but I need a range not a single cell value
I'm then taking those values and would like to build an array from those to iterate the values across my for loop function correctly.
Thanks in advance!