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

176
Views
Ejecute el script de Adobe PDF cuando se guarde el documento

Estoy intentando colocar el script a continuación en Acciones del documento en "Documento guardado". No estoy seguro de cómo completar las declaraciones if. Me gustaría que el script se ejecute si el cliente responde afirmativamente a cualquiera de las 8 preguntas.

 var MonTitre = "Title"; var MonAlerte = 'You answered "Yes" to 1 or more questions on this form. Would you like to email it to us now?\n \nClick "Yes" to create an email draft with the form.'; var cToAddr = "admin@email.com"; var cCCAddr = ""; var cBody = "Please, review……\n”; var one = this.getField("cd.one"); var two = this.getField("cd.two"); var three = this.getField("cd.three"); var four = this.getField("cd.four"); var five = this.getField("cd.five"); var six = this.getField("cd.six"); var seven = this.getField("cd.seven"); var eight = this.getField("cd.eight"); if (one = "Yes" || two = "Yes" || three = "Yes" || four = "Yes" || five = "Yes" || six = "Yes" || seven = "Yes" || eight = "Yes"){ if(app.alert({cMsg: MonAlerte, nIcon: 1, cTitle: MonTitre, nType: 2}) == 4){ this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: "Review", cMsg: cBody});}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Creo que te falta .value en tus comandos getField :

 var one = this.getField("cd.one").value ;

fácil de olvidar!

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!