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

Limit the value in decimal field

wentz123
Level 1
Level 1

I want to limit the value entered into the decimal field to be less than a specified number, e.g. 500.00. Can I do that in livecycle designer?

2 Replies
Bibhu_Bikash_Na
Level 9
Level 9

Yes, You an do that. In the exit event of the NumericField you can use the following script.

if (this.rawVale >= 500.00)

     {

          app.alert("Please enter a value less than 500.00");

          this.rawValue = "";

}

Thanks,

Bibhu

vshanker
Level 2
Level 2

You can simply restrict the leading and trailing digits by selecting check box and setting desired limit.

like:

Limit Leading Digits>> Max500

Limit Trailing Digits>> Max:2

You can get this option in object pannel> Field of decimal field object in designer.

Regards,

Vijay