Previous | Next | (P-PDF) JavaScript
Topic: Timesheet w/ auto dates
Conf: (P-PDF) JavaScript, Msg: 28649
From: Jub
Date: 10/17/2001 01:00 PM
Kristine,
Your 'var a' is the field with name "7"
- i.e. an object.
Your 'var b' is a date object constructed with a datestring.
When you hard code that date string('12/25/01')
it works fine...
So for it to work without being hardcoded,
you need your 'var a' to be a string.
i.e. the field '7's value, not the field itself.
Try this...
var a = this.getField("7").value;
HTH,
Jub