Your code is probably running just fine, it just doesn't appear to do anything that modifies the PDF in a way that you'd notice. There's not enough detail here to say for sure though. What are your actual field names?
1 person found this helpful
Use this code as the custom calculation script of the "I" field:
var h = Number(this.getField("H").value);
if (h<3000) event.value = 3000;
else event.value = h;
Actual field names are "I" and "H". Keeping it simple. Field "H" is a field calculated by acrobat using simple field notation and correctly executes. Field I is a field that I want to either mirror field "H", or if the value of Field "H" is below 3000, then to have the returned value of Field "H" be 3000 (my minimum acceptable value ). Hope this helps you help me. Thanks.
Thank you very much. Tested it a few ways and appears to work fine.