Highlighted

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

Highlighted

Avatar

Avatar

_SekharN_

Avatar

_SekharN_

_SekharN_

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,