This content has been marked as final. Show 6 replies
How are you rounding those other values to the nearest dollar in the first place, and how are you setting the field values?
As for the rounding, I'm using the text field poperties. I select the format tab and select the number category and select no decimal place.
I start off typing in the beginning balances. Then they go through various basic calculations (addition, subtraction, & multiplication). I set these up using the calulate tab in the text field properties. I hope that answeres your question. Thanks again
Can you give me an example of how to write the script for that. I've tried the Math.round() but I've been unsuccessful. Basically I'm trying to write Math.round(Text#)+Math.round(Text#). Is there supposed to be more script before or after Math.round() to make it work properly? I really do appreciate your help.
If you are using LiveCycle Designer FormCalc:
// sum the rounded values of the field's Text1 and Text2 rounded to whole dollars
Round(Text1, 0) + Round(Text2, 0)
If you are using Acrobat's form foields, the custom script for the same example would be:
event.value = Math.round(this.getField("Text1").value) + Math.round(this.getField("Text2").value);
Awesome!!! Problem resolved. Thanks a ton for the help. I really appreciate it.