Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

New to LiveCycle and question on Current Date box.

Avatar

Avatar
Level 1
Myershp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Myershp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Myershp
Level 1

26-02-2009

Hi all,



I'm very new to designer and I'm trying to put in a Current Date box. The issue I have is that it displays as 2/26/09 and I need it to display as February 26, 2009.



I've gone into the patterns and enter that, but it doesn't change anything.



When I drag the Current Date box into the form, I get a message that says "This object has settings that this form does not support. These settings are removed when the object is placed on the form."



What is this? I made this form off of an existing PDF file that has nothing in it.



Thanks for any help,

Jason

Replies

Avatar

Avatar
Validate 10
Level 8
Jono_Moore
Level 8

Likes

111 likes

Total Posts

1,151 posts

Correct Reply

144 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 8
Jono_Moore
Level 8

Likes

111 likes

Total Posts

1,151 posts

Correct Reply

144 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
Jono_Moore
Level 8

26-02-2009

Put this script (formcalc) in the Initialize (or wherever you need it) event for your field:



$.rawValue = num2date(date(), DateFmt(3))

Avatar

Avatar
Level 1
Myershp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Myershp
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Myershp
Level 1

26-02-2009

I'm not sure where to put that in. In the Object palette, there isn't anywhere that I can find to put in a custom script.



I tried to put it in the pattern, but it wouldn't take it.

Avatar

Avatar
Validate 10
Level 8
Jono_Moore
Level 8

Likes

111 likes

Total Posts

1,151 posts

Correct Reply

144 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 8
Jono_Moore
Level 8

Likes

111 likes

Total Posts

1,151 posts

Correct Reply

144 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
Jono_Moore
Level 8

26-02-2009

Ah, ok I see what's going on - I didn't realize there was a prebuilt current date object.



The reason it doesn't change the format from the Patterns is because it is using a script like the one I gave you.



You need to open the Script Editor window (Window->Script Editor -- I think its default location is just under the toolbars above the page you're working on) then when you click on the object the Script Editor will list scripts attached to the object.



You need to change the script where it says DateFmt(1) to DateFmt(3).