dhtmlxForm send() problem - not sending the correct values

we have dhtmlxForm with a few fields on the screen;
a few of them are changed by custom events during input;
i.e. there is this function to change the input value to uppercase

function ChkUpper(thisObj)
{
thisObj.value=thisObj.value.toUpperCase();
}

now I input the data, the functions are correctly called, and the data are correctly change on the screen;
i.e. I have field “Cognome” value “ROSSI” (original input was “rossi”), field “Nome” value “GIOVANNI” (original input was “giovanni”) and field “Data_Nascita” value “10/02/1967” (original input was “10.2.67”);
so everything seems to be correct on the screen;

data are now sent:
objForm[actualEditIndex].send(“Job.Aspx?WHAT=JOB&PAR=SHOW”,“post”,EditDataSaved);

when I get the data sent to the server, I was really surprised that they were not the data I see on the screen, but these were the data of my originally input;
so I see on the request.form

“Cognome=rossi&Nome=giovanni&Data_Nascita=10.2.67”

how is this possible? are there 2 different arrays? data seen on the input form and
data sent to the server?
shouldn’t I change the value of the input fields by change just the “value” of the object?

I’m not really sure, but I’ve been using dhtmlxform for a long time now, and it seems to me as this problem got out just by installing the latest version (but it could be just an impression)
somebody knows the solution to this?

ok, I found the solution;
changing the “value” of the object only changes the data on the screen;
but the data sent seems to be different that the fieldvalues you see on the screen;
I had to change the value by setitemValue in the personalized validation functions, i.e.

function ChkUpper(thisObj,objForm,objName)
{
objForm.setItemValue(objName,thisObj.value.toUpperCase());
}

now the data sent are exactly the one seen on the screen!
so it works :slight_smile: