When I make a mistake in captcha image I get the message error and the form is shown in a new page... how can I get my form in the same position in my Joomla (between other mods)?
Thanks
Jos
Hi Jos,
I'm not sure that you can at the moment. The on-error routine just recalls the chrono-contact page.
I guess that the calling URL must be available somewhere and could be used to redirect - will have to dig into this a bit more.
Bob
PS Are you using the mambot to put the form in a content page or in a module?<br><br>Post edited by: GreyHead, at: 2008/01/10 15:40
Hi Bob,
Yes, I'm using the mambot to put my form in a module and of course it works perfectly.
Thanks for your time to resolve my question, I will be waiting for news.
Regards
Jos
PS. If you want to see my form I can send you the URL by email, this because it is not public yet.<br><br>Post edited by: joayala, at: 2008/01/11 08:25
Hi Jos,
Hmmm . . . not simple. At the moment, the mambot (and module) versions of a form just refer the results back to the ChronoForms component for processing. ChronoForms does not know where they are sent from and so just processes the results (including re-displaying the standard from page if there is a validation error).
I think - very much first thoughts - that it is possible to pass the referring page url back to ChronoForms so that if there is a validation error it will redirect to the calling page. But, I'm not sure that it's possible to safely pass back the $_POST variables used to fill the form fields with the submitter's data.
Perhaps if Max reads this he will hae some ideas.
Bob
Is there any progress on this? I'm anxious about deploying a form without any form of Image Validation.
Hi Peterson, no not yet!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Fair enough. I guess I could deploy all of my page content within the form. Not semantically correct, but better than a shed load of spam.
Hi Peterson,
In chronocontact.php find those lines :
showErrorMessage('Sorry, You have entered a wrong verification code');
showform($_POST);
Change them to :
echo "<script> alert('Sorry, You have entered a wrong verification code'); window.history.go(-1); </script>
";
This will fix it for you but forget about keeping data user added in the form!🙂
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
For some reason, I don't keep form info if I get the validation image wrong on the component either.
K, this needs some preparations, if you don't care about it then do the hack above and it will fit your needs!!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks. I'm still working out if this will be suitable for my needs.
Hi Petersen,
Sometimes it's simpler to copy the content page html into ChronoForms rather than try to use the mambot in a content page.
Bob
That's what I've done.🙂