Tengo un formulario de adobe con varias preguntas de sí/no. Me gustaría crear un javascript para enviar un correo electrónico (o crear un borrador) si el cliente responde "Sí" a alguna de las preguntas.
Tengo el script de correo electrónico:
var cToAddr = "user@email.com" var cCCAddr = "" var cBody = "Please, review this........\n" + "\n " + "\n " + "\n " + "\nConfidentiality Notice:\n" + "\n" + "The information contained in this transmission may contain privileged and confidential information, including patient information protected by federal and state privacy laws. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution, or duplication of this communication is strictly prohibited. If you have received this transmission in error, please notify the sender immediately at (555) 555-5555; and permanently delete this email and any attachments.\n" this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: "Review Information", cMsg: cBody});Tengo un script de cuadro de diálogo:
// Dialog Definition var oDlg = { description: { name: "Email This Form Now", elements: [ { type: "view", elements: [ { name: 'You answered "Yes" to 1 or more questions on this form. Would you like to create an email to user@email.com containing this form?', type: "static_text", }, { type: "ok_cancel", ok_name: "Yes", cancel_name: "No, close box"}, ] },] } }; // Dialog Activation app.execDialog(oDlg);No estoy seguro de cómo juntarlos para crear un borrador de correo electrónico (o enviar un correo electrónico) cuando se hace clic en el botón "Sí".