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

Random number, is it possible?

Avatar

15-01-2009

Hi there,



I need some quick help.



I have a form in LiveCycle already, but I want to add a field on the form that is essentially an order number. This should be random, and I don't want/Can't connect to a database.



What I am essentially looking for is a text label that says:



Registration #: 88888-77777-66666-55555



And somewhere/somehow I essentially want that to look like:



Registration #: <1st 5 digit Random> - <2nd Random> - <3rd> - and so on.



So How do I do that? Any help would be greatly appreciated.



-Adam

Replies

Avatar

Avatar
Boost 5
Level 7
gkaiseril
Level 7

Likes

13 likes

Total Posts

456 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 7
gkaiseril
Level 7

Likes

13 likes

Total Posts

456 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
gkaiseril
Level 7

16-01-2009

JavaScript has the Math.random() funciton that is available to LCD. This funciton returns a number between 1 and 0.