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 11/04/2024, 09:34:20

Resources

MAKING YOUR OWN 2D VTUBER MODEL
Anti-tankie resources and notes
ASCII, Emoji, and Text Meme Templates For Twitter
Out of Office
DPRK Reading guide
Technical Resources for Sex Workers
Frameworks v0.1
BIPOC-Authored Social Work Papers