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

Validation for multiples of 5

Avatar

Level 1

I am creating a fillable order form for my company that can be distributed to all our clients. Some of the items must be ordered in multiples of 5 and some in multiples of 3. Is there a way to use a validation pattern in LiveCycle Designer to force customers to use multiples of 5 (i.e. they should only be able to enter 5, 10, 15, 20.... instead of 1, 2, 3, 4....)

1 Reply

Avatar

Level 10

Try to place this in the exit event of the field where you want multiple of 5 needs to be entered.


if(mod($.rawValue,5) ne 0) then
$host.messageBox("Not a valid Value");
$host.setFocus($.name);
endif

Replicate the same for multiples of 3..

Thanks

Srini