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

459
Views
Aparece el error "No tiene permiso para llamar a ScriptApp.newTrigger" en el editor de scripts de Google Forms"

Tengo un formulario de Google (From_1) que crea un documento de Google y otro formulario (Form_2). Form_2 se crea a partir de una plantilla que contiene su propio script de aplicaciones. Al crear Form_2, también quiero crear un disparador onSubmit() para ese formulario. Sin embargo, me sale un error que dice:

Excepción: no tiene permiso para llamar a ScriptApp.newTrigger. Permisos requeridos: https://www.googleapis.com/auth/script.scriptapp

Mi appscript.json se parece a:

 { "oauthScopes": [ "https://www.googleapis.com/auth/script.scriptapp" ], "timeZone": "America/New_York", "dependencies": { }, "exceptionLogging": "STACKDRIVER", "runtimeVersion": "V8" }

Aquí está el código que estoy usando para crear Form_2 y mi intento de crear el disparador onSubmit(). ¿Cómo puedo crear un formulario con un disparador onSubmit()?

 // Create job offer form var templateOfferForm = DriveApp.getFileById('my_form_id_number'); //create a copy of the template, we don't wanna mess up the template doc var offerForm = templateOfferForm.makeCopy(); //open the new template form for editing var openForm = FormApp.openById(offerForm.getId()); // Setting title name openForm.setTitle(items[1].getResponse()); // Setting name in form offerForm.setName('Job offer form: ' + items[1].getResponse()); // Setting the trigger for the new form ScriptApp.newTrigger('onFormSubmit') .forForm(FormApp.getActiveForm().getId()) .onFormSubmit() .onOpen() .create();
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!