Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Script Help Creating Dynamic Email Button in Form  (Read 1107 times)

tonyt

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
Script Help Creating Dynamic Email Button in Form
« on: January 17, 2022, 07:56:45 PM »

I am trying to create a button that on "mouse up" will attach the PDF form to an email Cc'd to myself.  However when I try and use the codes below to find an email entered into a text field for the To on the email I get zero functionality.  I have tried all these methods.  Any insight would be appreciated.

this.mailDoc({
bUI: false,
cTo: “email@gmail.com”,
cCC: “email1234@email.com”,
cSubject: “Tony Tenbrink - Invoice”,
cMsg: “Please see the attached invoice.  Thank you for your business!”
})

---------------------------

this.mailDoc({
bUI: true,
cTo: =this.getField("TERMS”).value,
cCc: "email@gmail.com",
cSubject: "Invoice",
cMsg: "Please see the attached invoice.  Thank you for your business!"
});

----------------------------

var cuEmail = document.getElementById("TERMS").value
this.mailDoc({
bUI: true,
cTo: cuEmail,
cCc: "email@gmail.com",
cSubject: "Invoice",
cMsg: "Please see the attached invoice.  Thank you for your business!"
});

-------------------------------

var cuEmail = this.getField("TERMS").value
this.mailDoc({
bUI: true,
cTo: cuEmail,
cCc: "email@gmail.com.com",
cSubject: "Invoice",
cMsg: "Please see the attached invoice.  Thank you for your business!"
});
Logged