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

Form number count

Avatar

16-09-2008

Hi, I am stuck with probably the most simple script i need for my Livecycle form. I want to have a number in the form with 6 characters which counts up starting from a certain number each time the form is saved.



Can someone help me out on this one?



Thx in advance, Tom

Replies

Avatar

Avatar
Level 5
_SekharN_
Level 5

Likes

0 likes

Total Posts

246 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_SekharN_
Level 5

Likes

0 likes

Total Posts

246 posts

Correct Reply

0 solutions
View profile
_SekharN_
Level 5

16-09-2008

Here is what you may try....

add a textField add set the default value to 100000 (or the number you want) and in 'preSave' event add the following JS code



this.rawValue = parseInt(this.rawValue) +1



Good Luck,