Is this a bug, or is there something I'm missing. I want to change the text in a TextField based on the date. But, the text does not get set after I use the util.scand() method.
I know this sounds weird. I made a blank form with nothing but the TextField on it. And, the code below is all there is.
xfa.form.form1.SubForm.TextField1.rawValue = "Before";
var strExpireDate = "11/07/07";
/* Turn the Expire Date into a Date Object */
var dateExpireDate = new Date();
//Comment out the following line and it works
dateExpireDate = util.scand("mm/dd/yy", strExpireDate);
xfa.form.form1.SubForm.TextField1.rawValue = "After";
With this code, if you Preview the PDF, the TextField stays stuck on "Before." If you comment out the line with the util.scand() method, the TextField will show up as "After".
Any ideas?