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

Re: acrobat XI Pro formulas

$
0
0

Try something like:

 

// Custom calculation script

(function () {

 

    // Get the field values, as numbers

    var numerator = +getField("H25").value;

    var denominator = +getField("H22").value;

 

    // Perform the calculation

    if (denominator !== 0) {

        event.value = numerator / denominator;

    } else {

        // Blank this field if denominator is zero

        event.value = "";

    }

 

})();

 

Replace H25 and H22 in the code above with the actual field names you're using.


Viewing all articles
Browse latest Browse all 57214

Trending Articles