Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Populate Subject line from text field (XFA)

$
0
0

I'm using this code which is not working for me. I added a Button the assign the code as javascript in the click action but nothing happens.

 

var subject = RIFN.rawValue + "-" + CurrentDate.rawValue;

 

var myDoc = event.target;

try {

    myDoc.mailDoc({

        bUI: false,

        cTo: 'test@acme.com',

        cSubject: subject,

        cSubmitAs: "PDF"

    });

} catch (e) {

    // exception handling...

}


Viewing all articles
Browse latest Browse all 5571

Trending Articles