Rounding single non-calc field
I have created a financial statement form with format of 0 decimals. I know that formatting is visual only. The table has five columns of information relating to Rental Property #1, #2, etc. One of the calcs is the following (which I repeat for each property):
event.value = Math.round(this.getField("GrossMthRent_1").value * this.getField("OwnershipPercentage_1").value); which I contain in a hidden field (Prop1Rent),etc. Then I add all Prop#Rent calcs for a visable TotalShareMonthRent. This total then flows to the summary page where it is presented as an annualized total (TotalShareMonthRent*12). The calculation order was challenging as the totals on page two and three flow to summary on page one so 2&3 have to be calc'd before page 1, but it works great and both the format and the actual system number are the same.
My last hurdle is that I don't know how to structure a single field in the same way (formt=result), or anohter way would be to stop a user from inputing decimal values. Example:
CashA - input $1.25, formats to $1
CashB - input $1.25, formats to $1
CashC - input $1.25, formats to $1
A+B+C Total calc = $3.75, formats to $4, but the individual formats equal $3. Visually, the section does not balance on the printed document.
I would like to either block the user from inputting a value with decimals, or have a script that rounds each line level entry the same as it does for calculations.
How can I do this? I'm not looking forward to touching each user input field again but once its done, its done!
TIA ~ Michelle
