Field Validation


hi,

 

i have form 2 fields compared. both should same , if not there should explanation why. fields contain both text , numerals.

 

would able me write validation script ensure alert pops when there discrepancy?

 

thanks

assuming fields called "text1" , "text2", make custom calculation script text2:

 

 

     //check if fields same
     //make custom calculation script text2

     var f = this.getfield("text1").value;
     var g = this.getfield("text2").value;

     if (f !== g){
     app.alert("fields not same", 3);
     }

 

just replace "text1" , "text2" names of fields in form.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Adobe Acrobat Pro , Terminal Server Use

Thread: transmission-daemon isn't playing nice: "409: Conflict"

Thread: gpg: Conflicting Commands