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

171
Views
How to display value from Code.gs to my HTML file (Google Script)

Good day, I would like to ask on how to pass/display my variables from Code.gs to my HTML file.

My Code.gs

function activities_displayTicketType() {
  var GetActiveSpreadsheet = SpreadsheetApp.openById("SpreadSheetID"); //Removed ID
  var GetActiveSheet = GetActiveSpreadsheet.getSheetByName("SheetName"); //Removed Sheet name
  var total_ft = GetActiveSheet.getRange(2,2).getValue();
  var total_crf = GetActiveSheet.getRange(3,2).getValue();
  var total_others = GetActiveSheet.getRange(4,2).getValue();
  Logger.log(total_ft);
  Logger.log(total_crf);
  Logger.log(total_others);
  document.getElementById("ticket_ft_count").innerHTML = total_ft;
}
activities_displayTicketType();

My HTML:

<div class = "col-sm-3">
              <div class = "card">
                <div class = "card-header"> <h6> Ticket Type Summary </h6> </div>
                <div class = "card-body"> FT - <text id = "ticket_ft_count"></text> </div>
                <div class = "card-footer"> </div>
              </div>
            </div>
about 4 years ago · Juan Pablo Isaza
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!