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_
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_
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
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
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.
:)
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.
:)
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
Best regards,
Max
This topic is locked and no more replies can be posted.