Quantcast
Channel: Adobe Community: Message List - PDF Forms
Viewing all articles
Browse latest Browse all 57214

Re: If Else Statement in Validation of Other Field's Values

$
0
0

Use this script as the custom calculation script for the "Total" field.

 

This script assumes there are 2 fields, "Remaining Balance" and "Total":

 

     var b = getField("Remaining Balance").value;
     if (b > 3000){
     getField("Total").value = 3000;
     }
     else getField("Total").value = b;

 

 

Hope this helps.


Viewing all articles
Browse latest Browse all 57214

Trending Articles



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