Tengo algo de javascript en formato PDF de Acrobat que funciona bastante bien en una PC, pero no funciona en un dispositivo iOS. Mi objetivo es enviar un correo electrónico a una dirección que se pone en un campo. Tenía una versión más simple que usaba una URL mailto para redactar un correo electrónico para establecer direcciones (no extraídas de un campo) con asunto y cuerpo. Esta versión funcionó en ios.
Aquí está el código que adapté de algo que encontré en línea (no sé javascript):
// This is the form return email. It's hardcoded // so that the form is always returned to the same address. // Change address on your form to match the code below var cToAddr = this.getField("EMAIL").value; // First, get the client CC email address - this should be a generic Roadmaster account for all sales people. var cCCAddr = ""; // Next is the Roadmaster Rep's email only if it is filled out var cBenAddr = this.getField("RMEMAIL").value; if(cBenAddr != "") cCCAddr += ";" + cBenAddr; // Set the subject and body text for the email message var cSubLine = "Order Form - Roadmaster" var cBody = "Thank you for interest in Roadmaster products.\n" + "Your order form is attached." // Send the entire PDF as a file attachment on an email this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody}); [1]: https://drive.google.com/file/d/1U9SGShzCYq_lDQtG0wCuetR0i4UdErsC/view?usp=sharingNo. Al menos, no en el móvil. No todos los javascript compatibles con el escritorio son compatibles con las versiones móviles. Específicamente, this.mailDoc() no está disponible.