Hi,
I create a field with type Encrypted Text, I add a client script (onchange) on that field, but my script it's not working.
EXp:
Hardware [alm_hardware]
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading ) {
return ;
}
if(isNaN(newValue) ){
g_form.showFieldMsg('u_4_digits','CC Digits must contain only digits','error');
return false;
}
if(newValue.length!= 4){
g_form.showFieldMsg('u_4_digits','CC Digits should be 4 digits','error');
return false;
}
}
Any Ideas!!!
Thanks