Forums

validation didn't work in module position

acy277 21 Oct, 2008
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
Max_admin 21 Oct, 2008
Hi acy277,

V3.0 and V2.5 are different regarding validation, do you mean that the plugin works well and the component page not ? which plugin version do you use with V3.0 stable ?

there should be no errors of course, may be your page has some errors or other js libraries which made a conflict!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
acy277 21 Oct, 2008
Hi Max,

I didn't use the component to display my form, instead I used module to display it. I am using module "mod_chronocontact_v1.1_CFV3.0 Stable" and the plugin is Bot 0.6 J1.5, component version is V2.5 RC3.1.

Are you able to provide the module V2.5 and let me have a test?

Thanks,

Dennis
Max_admin 21 Oct, 2008
Hi Dennis,

No module is available for the V2.5, there is some workaround with another module called "place here" or something like that, Bob knows its name and its here in the forums many times and in the FAQs (the module name) and I saw the module itself in the downloads area sometime ago, but the module you have is not compatible with V2.5

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 21 Oct, 2008
Hi Dennis,

Please see the FAQ "How can I show a form in a module?"

Bob
acy277 22 Oct, 2008
Thanks Bob and Max! I got it working now, many thanks....
This topic is locked and no more replies can be posted.