Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

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 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>