Hi,
i have this function in jsfunctions.js
function UpdateSum()
{
document.editform.value_PREZZOTOT.value = document.editform.value_PREZZOUN.value*document.editform.value_QUANTITA.value;
}
if I use this function in add form work great.
if I add at first line
document.editform.value_PREZZOUN.value = document.editform.value_prezzo1.value;
and I insert in prezzo1 a value work great.
But if prezzo1 is a dependent drop-down box that contain value 100, PREZZOUN doesn't contain the value 100, but the the value of category control in window "this dropdown is dependent on.."
For example
in detail invoice I select with lookup table the product code 'OMNIA'
in field prezzo1 I have dependent drop-down box with value 100 (the price of OMNIA)
in field PREZZOUN I haven't 100 but the string 'OMNIA'
Need an help, please!!
thank you