Expand my Community achievements bar.

SOLVED

Date picker with auto today's date

Avatar

Level 1

Hey,

I'm sure this has been asked and answered, but I couldn't find it in the search. I have a date/time field which is excellent for using the date picker to insert any date. But more often than not the form will use the current days date. Is it possible to have the Date/Time Field default to the date of the day the form was opened and STILL have the option of overwriting it with the picker?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try placing the below line of code in either of the Initialize/ Form Ready/ Layout Ready events..

$.rawValue = Num2Date(Date(),"MM/DD/YYYY");

Language is FormCalc..

Thanks

Srini

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Try placing the below line of code in either of the Initialize/ Form Ready/ Layout Ready events..

$.rawValue = Num2Date(Date(),"MM/DD/YYYY");

Language is FormCalc..

Thanks

Srini

Avatar

Level 1

Thank you. That worked just perfect.