A simple way to check for an empty field is to test for an empty string
if(f.value != "")
f.value = util.printd("mm/dd/yyyy)", new Date());
This also works the same
if(f.value.length)
f.value = util.printd("mm/dd/yyyy)", new Date());
This is the one I use cause it ignores entered spaces
if(/^\s*$/.test(f.value))
f.value = util.printd("mm/dd/yyyy)", new Date());
However, now you have the issue of keeping a clean form available for opening. What happens when someone saves it back to the same name? No more blank form. You'll have to manually reset it and save it back.
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often