Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Limit the value in decimal field

Avatar

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

Avatar

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

Avatar

Former Community Member

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