Avatar

Level 1

Hi all,

I've got a button on my form that should submit the form in pdf format, to a fixed mail address with a fixed subject message, that has variable content dragged from a text field, i.e "Subject; New e-DCR <TextField12.rawValue>"

Firstly, I got everytihng working with an automatic Submit by E-mail button, but couldn't solve the subject line text issue.  Next, I added a normal button, with a Regular controil type, & tried the following script (from another forum post) under the Click event in script editor - now, the button won't even fire....

var Mailto = "mail@mailaddress.com";

var Subject = "New e-DCR" + TextField12.rawValue;

var Mail = "mailto:" + Mailto + "?Subject=" + Subject;

event.click.submitForm({

cURL: Mail,

bEmpty: true,

cSubmitAs: "PDF"

});

I'm a complete n00b at scripting, so any advice & help would be very much appreciated.  Thanks!