Validating a TextField....


the problem have validating after user fills wrong entry throws out error message lets user go forward, accepts wrong data , forgets error! want validation error stay till user fills correct data. tried scripting still no success.
does 1 know need do?

you should need turn off validation error message under 'object-->value' tab , use scripting under 'exit' event rather 'validation' event.
also need set focus field when not meet required criteria. following sample formcalc code...

if (hasvalue($.rawvalue))
if ($.rawvalue == "abc" or $.rawvalue == "xyz")
//
$.rawvalue = $.rawvalue
else
xfa.host.messagebox("do not meet criteria.")
xfa.host.setfocus($.somexpression)
endif
endif

good luck,
sekharn,
www.lawson.com


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


adobe

Comments