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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Random number, is it possible?


Not applicable
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.

1 Reply


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