Restricting a value in a numeric field to a range


is there way of restricting input numeric field range 1 7 single digit decimal? instance value 7.5 accepted 8.0 or 10.5 not.

i have set every conceivable combination -- field data pattern 9.9; field data format 9.9; , binding data pattern 9.9 format decimal. validation pattern 9.9 allow entry of values outside of requested pattern (it prompts pattern still leaves incorrect value).

is there way of enforcing pattern , allowing field left blank if no value required?

try use script similar following in 'validation' event of field. when failed triggers validation error message display.

(this.rawvalue >= 1 && this.rawvalue < 7.5);

this javascript code.
hope works you.

sekharn
lawson software.


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments