Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 119881

Re: Error Prompt When Field Values Match

$
0
0

Ah, then it's very simple. You can use something like this:

 

if (this.getField("X").valueAsString==this.getField("Y").valueAsString) {

     app.alert("Error! The values of the fields X and Y are the same.");

} else {

     // rest of the code goes here

}


Viewing all articles
Browse latest Browse all 119881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>