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

81
Views
Make global function with different arguments

I want to create a function on Google Apps Script that takes a different value as an argument for each execution on the triggers that I'm going to set. For example :

customfunction (formid)
{
var form = FormApp.openById(formid);
//rest of the function
}

then I want to call this function on a specific trigger and pass the formid argument. Is there any way to do that ? I'm still new to Google Apps Script so I might be missing something

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I suggest you take a look at a javascript course. But you mean something like this..

function logFormTitle(){
  const idArray = ['xx', 'yy', 'zz']
  idArray.forEach(id => {
    const title = getFormTitle(id)
    console.log(title)
  })
}

function getFormTitle(id){
  const form = FormApp.openById(id)
  return form.getTitle()
}
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!