Modify Submit button to pick up data fromLiveCycle form field

Avatar

Avatar

veasnay51419317

Avatar

veasnay51419317

veasnay51419317

16-02-2019

When a user clicks on “Submit by Email” button, I would like to have at “Outlook subject” filled out using

Project number “data field on the form.(Project Number : 123)

How do I modify the “Submit by Email” button on a LiveCycle form?

Thanks, you so much

My Product Information:
Live Cycle Designer, Windows

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

17-02-2019

You can use variables to fill parameters of the mailDoc method with data from from fields.

var cTo = Textfield1.rawValue,

    cSub = "Put in your mail subject here...",

    cMsg = "Put in your mail message here...\n\nKind regards\n"; // \n is for line breaks

event.target.mailDoc({

bUI: false,

    cTo: cTo,

    cSubject: cSub,

    cMsg: cMsg,

    cSubmitAs: "PDF"

});