Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
Can you put code in alerts for app script

I'm new to app script and I was just wondering if there was a way to input a cell value into an alert.

I tried

var ui=SpreadsheetApp.getUi()
var winScreeen = ui.alert('Win:',sr.getRange('U5').getValue())
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Another way to alert

function myalert() {
  const ss = SpreadsheetApp.getActive();
  SpreadsheetApp.getUi().alert(`win:${ss.getRange("Sheet0!A2").getValue()}`);
}

Template Literals

about 4 years ago · Juan Pablo Isaza Report

0

Instead of

var winScreeen = ui.alert('Win:',sr.getRange('U5').getValue())

use

var winScreeen = ui.alert('Win:' + sr.getRange('U5').getValue())

The above used + to concatenate two values.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!