displays the error message, the captcha code is wrong in moduleon article

solraul 24 May, 2016
Hello

ChronoForms is an excellent extension for joomla, but I'm having the following problem, I need to include different forms in different content on the site where I work, for this I believe modules ChronoForms and then whith the plugin joomla to insert a moduo in an article , I add them to my content, it works all right except captcha codes and recaptcha, when you open the form from the frontend, the captcha image is loaded correctly, but when sending the form, displays the error message the captcha code is wrong, I have made many tests and I am sure the captcha code is well entered, but also shows the error message, and also processes all actions onsubmit event as if the captcha code was is correct.
If I access the form from a menu item, this does not happen.

I could help to solve this problem

Thank you !
GreyHead 24 May, 2016
1 Likes
Hi solraul,

Please try using the ChronoForms plug-in in an article. That should work OK without the need to use the module + plug-in combination.

Bob
solraul 27 May, 2016
Hello Bob

Thanks for your answer. Perfect, Now if it works correctly.

Regards !
cambium 17 Oct, 2016
Hi!
//Sorry for my english
I have the problem with captcha error (You have entered a wrong verification code!).
If i remove the custom js code from submit event:
setTimeout('location.replace("/")', 5000);

all is ok, but if i use that js code i get the captcha error.
I tried to use the setting "Relative URL" with both options and cleared the browser and joomla cache. All of that are not helped me.
Please, tell me what i done wrong
GreyHead 17 Oct, 2016
1 Likes
Hi s.elena133,

It looks like a problem with the JavaScript - what exactly are you trying to do? If it is to redirect the user to the site root try using the full href url there instead. Does that work?

Bob
cambium 17 Oct, 2016
Hi, Bob!
thanks for you answer.
I tried. It doesn't work.
And i just removed the custom js code - captcha doesn't work correctly (cache cleared too) 🙂
cambium 17 Oct, 2016
Tried with security question - the same problem. But if i use element "redirect" (from utilities) - all is ok. I just wanted to users see the thanks message before the redirect.
GreyHead 17 Oct, 2016
1 Likes
Hi s.elena133,

PHave you tried the code in this FAQ

I'm curious about why the Captcha is being checked when you are showing a Thank you page? Are you using AJAX submission?

Bob
cambium 17 Oct, 2016
Hi once more
I've corrected the code as you advised me:
setTimeout('location.replace("http://test.kirensk-crb.ru/")', 5000);

It not helped with problem. I used the php custom code before it:
<?php
  header('Refresh: 3; URL=http://test.kirensk-crb.ru/');
  exit;
?>

It not worked same. And with security question i used too. Only with redirect element the form submit work ok. But i don't know how to use this element with delay
GreyHead 17 Oct, 2016
1 Likes
Hi s.elena133,

Please check my last post.

Bob
cambium 17 Oct, 2016
Oh, sorry
Maybe i explained badly.
At first, to avoid double form submission when the page refresh, i wanted redirect the user to the home page after he read the thanks message.
No, i'm not using AJAX submission.
GreyHead 17 Oct, 2016
1 Likes
Hi s.elena133,

The check Captcha shouldn’t be running when you redirect. Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

Bob
cambium 17 Oct, 2016
Hi, Bob!
That this form
GreyHead 18 Oct, 2016
1 Likes
Hi s.elena133,

First there is a small problem in the Load Security Question action - there is a blank line at the end and CF is not clever enough to ignore this so sometimes you get an empty question.

Second the form appears to work OK without your PHP code and with it; except that with it you see a blank page before you are redirected.

Using a 'fixed' version of the code from the FAQ works correctly:
<?php
$jdoc = \JFactory::getDocument();
$jdoc->setMetaData('refresh', '5;url=index.php', true);
?>

Bob
cambium 18 Oct, 2016
Hi, Bob
I know about the problem with security question and hope that in future it will be fixed. I think that it better than captcha for site users. At the moment, i'll remove it and use the code you suggested and use captcha
Thousand thanks!
GreyHead 18 Oct, 2016
1 Likes
Hi s.elena133,

The only problem with the Security question is the empty line at the end of the Questions=Answers list, if you remove that it works OK. (Though the questions are a bit hard for me.)

Bob
cambium 18 Oct, 2016
Hi, Bob
I should have known to check the last line at this field! I'll remove it, of course.
Then is better to use the question element 🙂
Thank you so much for your help!
This topic is locked and no more replies can be posted.