Converting Excel Formula to Javascript
i working on form in adobe pro. how convert formula javascript?
=if(g19 > 0,g19*i19,h19*i19)
the custom calculation script like:
(function () {
// field values, numbers
var g19 = +getfield("g19").value;
var i19 = +getfield("i19").value;
var h19 = +getfield("h19").value;
// perform calculation depending on value of g19
event.value = g19 > 0 ? g19 * i19 : h19 * i19;
})();
More discussions in PDF Forms
adobe
Comments
Post a Comment