Consider form id is 'form_id' and custom class 'class_name'
var dataForm = new VarienForm('form_id', true);
Validation.add('class_name','Alter message',function(the_field_value){
if(the_field_value == '')
{
return false;
}
return true;
});
var dataForm = new VarienForm('form_id', true);
Validation.add('class_name','Alter message',function(the_field_value){
if(the_field_value == '')
{
return false;
}
return true;
});
No comments:
Post a Comment