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

Populate current date into date field?

$
0
0

I've been working on trying to get a date field to populate the current date if the user enters ' / ' into the field.  So far I have been able to replace ' / ' with a value but I am not able to populate the current date.  I have tried several suggests that on who to populate current date but have not been able to get my code functioning. 

 

I have place the below code on the exit even of the date field which runs correctly but when I try to add in the date it breaks.  Any one have a suggestion?

 

if  (this.rawValue == "/")

{

this.rawValue = 1

}

 

Thanks


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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