I *still* don't have the foggiest idea how JavaScript can affect the contents of a PDF file. So far as I know, JavaScript won't even be aware that you are using the browser to display a PDF file.
Can you show an example page that uses
JS to affect PDF in any way???
Ahhhh....wait! You are referring to using JavaScript in Acrobat *developer*, not in the reader, is that right???
Okay...then my basic answer is correct:
Code:
REFUND = ( Deposit > GT ? GT - Deposit : "" );
But presumably you must use Adobe's DOM to specify those fields in the document more clearly.
And that I know *nothing* about.