Clear the form before saving the fied.
Have you looked at the "Validation" tab?
What I actually did was set a action that will pop up a message box if the field "is greater than" a set amount. I also created another action that would keep the focus set to the field if the first action was to happen, so that the user "will be prompted" to change the amount.
I was also able to get the initial value to be "0" upon the form opening (not by clearing and saving the form as GKaiseril mentioned previously. This was due to my script rounding "0" up to .15), but that brings another problem. Since there are many fields in this form that need to have this calculation, I don't want the form to appear "crowded" with a bunch of "0" in the fields upon opening the form.
Problem: Is there a way to have the fields display NOTHING if a amount has not been entered?
and second...for these same fields as the problem stated above, I noticed that when a field is autmatically rounded to .30 as the nearest quarter hour, it doesn't show the "0", but only shows .3. Obviosuly, the other quarter hours won't have this problem. I also have the fields set up for 2 decimal places
Problem: How can I make the a field display two decimal places (i.e.30) and not like it is now (i.e .3)?
Thanks for all of your help.
It looks like your script should insert zero. I am not going to create a form and debug your script.
You can try setting the field to a null character string. To display the wanted number of decimals, look at setting the number of decimals for a field with a numeric format or use the 'util.printf()" method.