Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

FORMCALC (or JS) Default date today with user override questions

$
0
0
I have a date field where if null, I want today to be inserted. If the user overrides the today date and saves the form, I want the user entered date to stay.

What I have in FORMCALC is:

if ($.isNull)
then
$.rawValue = num2date(date(), DateFmt(2))
endif

The first part works, it populates with today, and I can overrided the date. When I save and then reopen the form, the date is "0".

Any ideas here?

Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>