Password Protect Script

Demo

Social
  1. Home
  2. Google Doc
  3. Password Protect Script

Password Protect Script

Demo

Social

function myFunction() {

ss = SpreadsheetApp.getActiveSpreadsheet();

let pwd ='';

let ui = SpreadsheetApp.getUi();

let bt = ui.Button.CANCEL;

let result = ui.prompt('Enter Password', ui.ButtonSet.OK);

let button = result.getSelectedButton();

topic = result.getResponseText();

if(button == ui.Button.OK && topic == 'UnboxGenie'){

ui.alert('Password entered successfully');

}

else{

while(pwd != 'UnboxGenie' || bt != ui.Button.OK){

let pmt = ui.prompt('Providing password is mandatory', ui.ButtonSet.OK);

pwd = pmt.getResponseText();

bt = pmt.getSelectedButton();

}

ui.alert('Password entered successfully');

}

}

Password Protect Script
Info
Tags Social
Type Google Doc
Published 24/04/2024, 16:42:13

Resources

MAKING YOUR OWN 2D VTUBER MODEL
ASCII, Emoji, and Text Meme Templates For Twitter
Technical Resources for Sex Workers
Out of Office
DPRK Reading guide
Frameworks v0.1
Socialism in the 21st Century (v1.0)
BIPOC-Authored Social Work Papers