validate a numeric field


i'm using es version 8.2.1

 

i have following set in numeric field:

validate  this.rawvalue <= 10

 

the validation script error message is: must enter value less or equal $10.00

 

so far above script works, take further.  when above validates (lets client puts 11 in field), client gets error message, value still remains @ 11 , allowed continue.

 

what want happen error message displayed, want field clear have put value = or less required.

 

i assume may take sort of if statement, don't see wizard help.

 

 

also, should upgrade es2 or es3?

 

thanks,

david

i put in exit event of field (in formcalc):

 

if ($ > 10) then

xfa.host.messagebox("you must enter value less or equal $10.00",1)

$ = ""

endif



More discussions in LiveCycle Designer


adobe

Comments