Copy link to clipboard
I'm trying to create a field that will automatically calculate drug compliance on a clinical trial. The formula is:
(Total dispensed - returned) / (Days between visits x dose[# of pills])
Example:(200-120) / (31 x 3) = 80 / 93 = 0.86 x 100 = 86%
I've used the below code in Adobe Acrobat Pro DC:
It accepts it with out any script error flags but the formula isn't working- its not calculating at all. Where did I go wrong?
The multiplication operator in JS is "*", not "X"...
Also, you would need to make sure that the denominator is not zero, or you'll get some strange results, or error messages.
Thank you so much. I just spent an hour searching on how to fix this issue!