Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

The text box value pointing old value while showing the validation message

Avatar

Former Community Member

Hi ,

Normally we are using different way to show the validation message . Here the way i used is simle .

Example ,

in the PDF one text box , the script is exit ()

if (this.rawValue.length != 5 ){

xfa.host.messageBox("The vlue length should be 5. ")

}

Here everything is fine . but while displaying this  message it not showing latest the value in the text box . For Example if u entered "23" then press tab its showing the value as empty  in text box while displaying the message . but after clicked ok in the message box then it showing coreect vale . then again if u eneterd "234 " then its showing 23 .

Its always showing old value while using xfa.hiost.messagebox . But if we use this.validationMessage then it working fine . when we use adobe acrobat scripting then its showing correctly . but if we use xfa.hiost.messagebox  this code its not working correctly .

Any Idea . Thanks in Advance

by

Dhiyan

0 Replies