I am a Javascript newbie, so I am hoping someone can help me with this...
Is it possible to get the maximum field Length for a textarea form field using Javascript?
We used to do this in Ebase 3.4 using the following code...
Code: Select all
var maxTextLength;
if( sourceObj.type == 'textarea' )
{
for ( var i in fieldArray )
{
if( sourceObj.name == fieldArray[i].fieldName )
{
maxTextLength = fieldArray[i].maxLength;
break;
}
}
}
It seems that the way maximum field lengths are stored has changed since Ebase v3.4. What is the recommended way of getting the maximum field Length for a textarea in Ebase v4.5?
Thanks in advance for your help.