Google Apps Script Alert - Deep Dive

  Рет қаралды 4,601

saperis

saperis

Күн бұрын

Пікірлер: 19
@sezginbulut44
@sezginbulut44 2 жыл бұрын
Hello there. If you call the onopen function instead of refreshing the page every time, new submenus will be added to the menu. :)
@saperis
@saperis 2 жыл бұрын
Calling it instead of triggering it. Thanks for the suggestion. 😀
@datafeedimplementationspec7704
@datafeedimplementationspec7704 Жыл бұрын
Is it possible to use an alert button (let say "Yes" for instant) to trigger the "Make a copy" of the file -, I would like to alert my users the moment they open my protected google sheet to make a copy of the sheet as not all of them will click on (file > make a copy).
@saperis
@saperis Жыл бұрын
In theory, yes that is possible. But it doesn't solve the problem you are facing. Making a copy of that document when they click on "Yes" means they will still be in the original document. You can't force them out of that document and onto the copy.
@datafeedimplementationspec7704
@datafeedimplementationspec7704 Жыл бұрын
@@saperis yikes! - yh not what I want. I run a couple of alternates and I’ve resulted in providing the instructions in the alert instead That should do for now.
@pippofranco767
@pippofranco767 Жыл бұрын
on an independent html file of an app script project, this mode you explained doesn't work. I tried with allert("message"); but in this case it works even with an annoying writing at the top which seems to be the link to the html page. Do you know how to fix the problem?
@saperis
@saperis Жыл бұрын
No, not without seeing the file. But that is a service I can't provide. Check Stackoverflow where you often find good input.
@pippofranco767
@pippofranco767 Жыл бұрын
@@saperis Thanks anyway. I managed to solve using AI suggested html code and app script.
@sellux_pro
@sellux_pro Жыл бұрын
CAN I RESTRICT A MAKE A COPY WITH EDITORS PERMISSION?
@saperis
@saperis Жыл бұрын
No, editing rights means that person can change anything in the document or in the Apps Script project. There is no way of restricting them to only change certain things.
@yusufimt1834
@yusufimt1834 2 жыл бұрын
Hello , could you make Alert if Cell value below zero? it will very helpful Thanks before
@saperis
@saperis 2 жыл бұрын
You would have to write a script that does that.
@programador-visual
@programador-visual 2 жыл бұрын
similar to sweet alert, very cool :)
@saperis
@saperis 2 жыл бұрын
Thanks for watching and commenting. 😀
@Leover378
@Leover378 2 жыл бұрын
Uhhhh no entendí del todo. Que uso le podemos dar a estas alertas? Me gustaría saber si cada vez que se abre un sheets o un docs (compartido o no), puedo saberlo mediante correo de gmail.
@saperis
@saperis 2 жыл бұрын
Puedes avertir la persona de qualquier cosa. Depende de que tu script tiene que hacer. La metoda "onOpen" no puede mandar correo de Gmail. Pero tal vez puedes crear un script que checkea sheets o docs cada hora para ver se han cambiado.
@Leover378
@Leover378 2 жыл бұрын
@@saperis Mas que verificar si se han cambiando cosas en la hoja, quiero es saber si solamente lo han abierto.
@saperis
@saperis 2 жыл бұрын
@@Leover378 No veo esa option en la documentation de Google Apps Script.
@sezginbulut44
@sezginbulut44 2 жыл бұрын
``` function onOpen(){ Logger.log(Session.getActiveUser().getEmail()); } function onEdit(){ Logger.log(Session.getActiveUser().getEmail()); } ``` You can try to print the result that returns a hidden page by taking this code as an example. I think you can send an e-mail with onedit. need some work :)
Google Apps Script: A Google Drive Tutorial
10:25
saperis
Рет қаралды 20 М.
Google Apps Script Triggers Explained 👈🏽
14:32
saperis
Рет қаралды 34 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Google Apps Script Tutorial for Beginners
23:54
saperis
Рет қаралды 392 М.
Advanced Alerts in Google Sheets: Customizable Pop-ups
22:23
Practical Sheets
Рет қаралды 1,8 М.
Apps Script - Difference Between Properties & Methods in Objects and Class Instances -  Live Stream
14:11
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 6 М.
Hello World! For Google Apps Script + Google Sheets
14:09
Joseph Palumbo
Рет қаралды 1,5 М.
Google Apps Script For Loop
19:09
saperis
Рет қаралды 20 М.
Getting Started Coding in Apps Script
12:16
Better Sheets
Рет қаралды 10 М.
How to Copy a Row to another Sheet with Google Apps Script
15:18
Google Apps Script Example: Automated YouTube Stats Workflow
15:10
Google Apps Script: How to get Spreadsheet
12:39
saperis
Рет қаралды 14 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН