Expand my Community achievements bar.

Date Validation for Null Field

Avatar

Former Community Member
Have a 'check field' button which validation fields for null and if null then a message box pops up when clicked. This works except for the date field which have a value default and display of MM-DD-YYYY. Why I can't get this to work..



if (datefield1.rawvalue == null) }

xfa.host.messagebox("not etc....)

}



I have tried formattedvalue ne null also and that do not work. I also have tried



var newdate.rawvalue = dafield1.formattedvalue;

if (newdate.rawvalue == null) }

xfa.host.messagebox("not etc....)

}



Thanks
1 Reply

Avatar

Former Community Member
My bad! I figured it out!



....but I do have other questions so I will be back! **lol** :)