I have a form in a module position asking for an email address and a captcha. If you user uses this form, it goes through fine and they get the success message (or error message). But, it has redirected to the current page with some extra query string parameters: ?chronoform=FormName&event=submit
This means that if a user then immediately uses any other form on the page (for example, to log in) the form tries to run again and they get the captcha error message.
It's not a major issue because the login (or whatever) still works fine, but the error message is confusing for visitors.
One way around it is to have a redirect to '?' as the last event, but this means that the success message is not shown.
Are there any other workarounds for this?
MattLG
This means that if a user then immediately uses any other form on the page (for example, to log in) the form tries to run again and they get the captcha error message.
It's not a major issue because the login (or whatever) still works fine, but the error message is confusing for visitors.
One way around it is to have a redirect to '?' as the last event, but this means that the success message is not shown.
Are there any other workarounds for this?
MattLG
Hi Matt,
I Put a custom element in the On Submit task with a redirect code:
I got this code from Bob and it works great.
Rob
I Put a custom element in the On Submit task with a redirect code:
<?php
$app =& JFactory::getApplication();
$app->redirect(JURI::root().'index.php/where you want to go');
?>
I got this code from Bob and it works great.
Rob
This topic is locked and no more replies can be posted.