change format of text field cause problems
Posted: Sat Sep 01, 2012 5:23 pm
Steven,
I have a text field in a subform with format "10000.00". Custom code in JavaScript section works fine and the main form is updated correctly. If I change the format of the text field into euro format "10000,00", calculations don't work, because the Number() function returns NaN. Also, I have used nuNumberise () function with the same result. Is this a bug or am I doing something wrong?
In the above subform, when I am trying to update a numeric field using the following code:
the result is always the same. field value remains zero.
Thanks
flsd
I have a text field in a subform with format "10000.00". Custom code in JavaScript section works fine and the main form is updated correctly. If I change the format of the text field into euro format "10000,00", calculations don't work, because the Number() function returns NaN. Also, I have used nuNumberise () function with the same result. Is this a bug or am I doing something wrong?
In the above subform, when I am trying to update a numeric field using the following code:
Code: Select all
subr = Number(document.getElementById(PREThis+'subr').value); // user inputs subr
ttsub = ttssub + subr ; // updates totals in main form correctly
document.getElementById(PREThis+'trd_subr').value = subr; // database field "trd_subr" is always zero
Thanks
flsd