Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Buttons don't work on iPad with Google Sheets - the onEdit(e) workaround isn't working. Suggestions?

$
0
0

I have a button that works with a function Yeah_Go(), but only when using on a browser on a laptop. When I try to press the button on an iPad Google Sheets mobile app, it doesn't work. Instead, the drawing is selected and moveable. Not my intention, eh?

Yeah_Go() works properly when you call it directly from the imported macros list, basically a verify alert Okay_Cancel that leads to another function.

Apparently button nonfunction is a known challenge on iPad.

It has been suggested to try the onEdit(e) function thus:

function onEdit(e) {  console.log("Function triggered");  var sheet = SpreadsheetApp.getActiveSheet();  var r  = sheet.getRange("J17").getValue();  if (r == "TRUE") {    Yeah_Go();  }}

When I check the checkbox in J17, nothing happens. Similarly, when I run the macro from the list of imported macros, nothing happens. Not even a happy note in the console...

How can I improve this so it actually works?

Cheers in advance.


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>