These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Date format when email form

patra
Registered: Oct 19 2006
Posts: 270

Here is the script for the email button:

var myDoc = event.target;
var address = "xxx@xxxcom";
var sub = "MANAGER FORM ";
var msgBody = "See my Form attached.\n\nThank You!";
var Sender = ( form1.Page1.Last_Name.rawValue+" "+ form1.Page1.First_Name.rawValue+" "+ form1.Page1.Effective_Date.rawValue);

myDoc.mailDoc({ bUI: false,
cTo: address,
cSubject: sub + Sender,
cMsg: msgBody,
cSubmitAs: "PDF"});

For the Effective_date field the date pattern is :date{MMMM D, YYYY} but when I press the email button I am getting the date as YYYY-MM-DD into subject line(Microsoft Outlook)!

How I can get date patern as date{MMMM D, YYYY}?

Thanks

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
I believe the problem is in using the 'rawValue', the operative word being 'raw'.

In LiveCycle Designer the 'rawValue' is the entered value string or the LiveCycle Design default format. There is also a 'formattedValue' that provides the value in the 'Display Format' option for the field.

George Kaiser

patra
Registered: Oct 19 2006
Posts: 270
Any suggestion how to solve the problem?

Thanks
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
What does using the 'formattedValue' property do?

George Kaiser