PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
Thanks for the flowers, Justice.
It would almost work.
The condition has to be set so that in the example the value of field b is valid (in order to create a valid result.
But if the division is not legally possible, and there are no further dependencies on the result, you are free to force the result field to be empty, if you can actually override the formatting.
Hope, this can help.
Max Wyss PRODOK Engineering Low Paper workflows, Smart documents, PDF forms CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37 or +1 815 425 6566 e-mail: mailto:[EMAIL PROTECTED] http://www.prodok.com
[ Building Bridges for Information ]
______________________
Shameless Plug:
My next conference appearances and workshops:
• Conference presentations at the 2004 Symposium of the BFMA, May 23 to 27 in Reno, Nevada (http://www.bfma.org) and pre-/post-conference workshop, May 22/23 and 27, organized by essociates Group (http://www.essociatesgroup.com/AdvancedAcrobatForms.htm)
• And, as always, available for on-site workshops/tutorials/consulting.
_________________________
Thank you Max, you are right as usual. Can you use a formula like this also work?:
var a = this.getField("a") var b = this.getField("b") If(a.value(or whatever the dependent field is) != 0) event.value = a.value / b.value else event.value = ""
I have learned more from this forum than any other resource to date. Thanks again for your insight.
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
