Hi there,
I have put my form on homepage using module (V3 stable), everything is alright apart from the validation. I also have this form on contact page using plugin, at there is working well. and I just found that there is an error saying that "this.getFormElements().filterbyAttribute is not a function ", (from firefox), the code is :
Element.extend({
getInputByName1 : function(nome) {
el = this.getFormElements().filterByAttribute('name','=',nome)
return (el)?(el.length)?el[0]:el:false;
}
});
window.addEvent('domready', function() {
('firstname,lastname,email').split(',').each(function(field){
$('ChronoContact_contact').getInputByName1(field).addClass('required');
});
('email').split(',').each(function(field){
$('ChronoContact_contact').getInputByName1(field).addClass('validate-email');
});
('permit').split(',').each(function(field){
$('ChronoContact_contact').getInputByName1(field).addClass('validate-selection');
});
});
Is it a bug with the module V3 version? Can you provide the old one (like V2.5) for me to have a test?
I am using chronoform V2.5 RC3.1 and Bot V0.6 J1.5 , Joomla 1.5.7
Thanks in advance
I have put my form on homepage using module (V3 stable), everything is alright apart from the validation. I also have this form on contact page using plugin, at there is working well. and I just found that there is an error saying that "this.getFormElements().filterbyAttribute is not a function ", (from firefox), the code is :
Element.extend({
getInputByName1 : function(nome) {
el = this.getFormElements().filterByAttribute('name','=',nome)
return (el)?(el.length)?el[0]:el:false;
}
});
window.addEvent('domready', function() {
('firstname,lastname,email').split(',').each(function(field){
$('ChronoContact_contact').getInputByName1(field).addClass('required');
});
('email').split(',').each(function(field){
$('ChronoContact_contact').getInputByName1(field).addClass('validate-email');
});
('permit').split(',').each(function(field){
$('ChronoContact_contact').getInputByName1(field).addClass('validate-selection');
});
});
Is it a bug with the module V3 version? Can you provide the old one (like V2.5) for me to have a test?
I am using chronoform V2.5 RC3.1 and Bot V0.6 J1.5 , Joomla 1.5.7
Thanks in advance