B
Bryan Hughes
Hello,
I am automaticaly trying to set the two date fields in the OnLoad Event, but
I am having problems.
Here is the current code I am using.
function XDocument::OnLoad(eventObj)
{
// Write your code here
var CurrentDate = new Date()
var y = CurrentDate.getFullYear
var DOH = XDoucment.DOM.selectSingleNode("//my:myDOH");
var DOHm = DOH.getMonth
var DOHd = DOH.getDay
// EvalStart = ES
var ESy = y - "1";
var EvalStart = XDocument.DOM.selectSingleNode("//my:myEvalPeriod1");
EvalStart.text = (DOHm + "/" + DOHd + "/" + ESy);
}
When I try and preview the form I get the following error "XDocument is
undefined" .
What is the problem and how can I fix it?
-TFTH
Bryan
I am automaticaly trying to set the two date fields in the OnLoad Event, but
I am having problems.
Here is the current code I am using.
function XDocument::OnLoad(eventObj)
{
// Write your code here
var CurrentDate = new Date()
var y = CurrentDate.getFullYear
var DOH = XDoucment.DOM.selectSingleNode("//my:myDOH");
var DOHm = DOH.getMonth
var DOHd = DOH.getDay
// EvalStart = ES
var ESy = y - "1";
var EvalStart = XDocument.DOM.selectSingleNode("//my:myEvalPeriod1");
EvalStart.text = (DOHm + "/" + DOHd + "/" + ESy);
}
When I try and preview the form I get the following error "XDocument is
undefined" .
What is the problem and how can I fix it?
-TFTH
Bryan