Forums

mambot breaks validation

ianmel 09 Jun, 2008
hi,

i'm working on a site and using the fantastic chronoforms component. after creating and testing my form to ensure it works as expected i added it to a page using the mambot and to my surprise it broke the validation of my form fields!?

the form launched by itself for the link in admin works perfectly but using the mambot seems to remove all validation (other than the captcha which works as usual).

i'm using joomla 1.0.15/chronoforms 2.3.9/chronocontact 0.6J1.0 (downloaded and installed the mambot only minutes ago).

cheers!

.../ian
GreyHead 09 Jun, 2008
Hi ian,

There's almost certainly a JavaScript conflit between the form validation code and something else on the page. Try checking with FireBug in FireFox to see if you get any useful diagnostics (JavaScript is tough to debug in IE).

Bob
ianmel 09 Jun, 2008
Thanks Bob...

sounds like you're leading me into some deep water here :-) I decided to add my html code to the form's html and it of courde solved the issue for me so i'm happy with the workaround for now.

thanks,

.../ian
GreyHead 09 Jun, 2008
Hi Ian,

Perfect :-)

Bob
jfidler80 20 Jun, 2008
I'm experiencing the same problem... but I'm not sure I know what Ian did to fix his issue. He says "I decided to add my html code to the form's html". Not sure what this means.
GreyHead 21 Jun, 2008
Hi jfidler80,

If you are putting the form in a fixed content page like 'some content' . . . 'form' . . . 'some more content'. Then, instead of using the mambot/plugin, you can paste the 'content' and 'more content' into the form html page and the result will be - more or less - the same but the imageverification will work without redirecting to a different page and, in Ian's case, the validation problem was resolved.

Bob
ianmel 21 Jun, 2008
That's exactly right Bob! :-)

.../ian
jfidler80 23 Jun, 2008
Thats not really a great way of doing things. Again, its just a work around. When building commercial sites to be administered by the customer... this causes problems. The customer should be able to edit their content pages without knowing how to edit their forms and the html that goes along with it.

This might be an issue for the individual who created the mambot. Its definitely a bug though and something that should be looked into.

Its free software (well... $25) so I can't complain terribly. You'd just like for something as important as validation to work no matter what.

Thanks for the help though!
GreyHead 23 Jun, 2008
Hi jfidler,

True, it depends what's on the page though, if the text is unlikely to change frequently then it can be a good solution and many people use it.

I talked to Max - the individual who created the mambot - a few weeks back about this. So far he has found no way of passing the correct page info back to ChronoForms from the mambot to allow the page to be recalled identically on a refresh. Any suggestions would be gratefully received I'm sure.

An alternative would be to use a mini-form / link on the content page to redirect to a ChronoForms page. That will allow ImageVerification but has other draw-backs.

Bob

PS AFAIK Validtion works OK, it's the mambot 'redirect on ImageVerification failure' that doesn't.
This topic is locked and no more replies can be posted.