Forums

Validation Problem

zoom 13 Apr, 2008
I'm having a problem with getting validation to work correctly on one of my forms. When I do a view source I noticed that my form name isn't being defined correctly in the code and thus causing prototype to fail since it can't find the object.

What I'm I doing wrong??

Thanks.

function formCallback(result, form) {
window.status = "valiation callback for form '" + form.id + "': result = " + result;
}
var valid = new Validation('ChronoContact_', {immediate : true, onFormValidate : formCallback});

In the example above the first parameter should be ChronoContact_MyTestForm not ChronoContact_
Max_admin 13 Apr, 2008
Hi zoom,

Yes, I never met this but let me ask you, do you have any PHP code in the form HTML box ? what are the variables defined if yes ? any of the variables named "$rows" ?

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
zoom 13 Apr, 2008
Thanks,

You were right! I changed my php code which was using a variable defined as rows to retrieve some data to something else and it worked perfectly.

:)
Max_admin 15 Apr, 2008
Great, I think we will need to change the code of Chronoforms to use some other variable name because $rows is very common!!🙂

Best regards,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.