I have a PDF file with calculations. The idea is that the user enters information on a simple form and the data gets replicated multiple times on the same form so they can print the same label 4 times on the same page without entering everything all over again. The calculation for each field is therefore:
event.value = this.getField("Field1").value;
This works well unless someone enters a dash/minus symbol. The calculation then returns 0 instead of the dash. This is the only character this happens on. I presume because it is mathematical in nature, but none of the other operation symbols do this though, so I am confused.
I am using FoxIt PhantomPDF to create the PDF with the formulas. The exact same PDF opened in Adobe Reader XI works perfectly. So I am not sure if this is a JavaScript issue or a FoxIt issue. Thanks!
If the two fields have the same properties, simply duplicate (copy/paste or duplicate-drag) them. Fields with the same name have the same value; no calculation or other scripting needed.