Forums

Captcha error BUT still validates code

wayne.regehr 11 Dec, 2014
I am experiencing a strange issue with one of my forms.

When filling out the form as required and submitting, the Captcha code validation experiences an issue. The Captcha validation triggers the error message to display AND at the same time is validating the Captcha code entered by the user successfully.

I am able to verify the above due to the following actions (DB Save, Email and Thank You) are being triggered correctly.

I check for any JS errors but found none.

Any ideas of where else I can check to solve this issue?

I would prefer the Captcha error message to only display when the code entered is actually incorrect. I will update this post with any progress on my end. Thanks.
Max_admin 13 Dec, 2014
Hi Wayne,

Please update Chronoforms and let us know if the problem persists, you may also post a screenshot for your setup section!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 14 Dec, 2014
Hi Wayne,

Do you have the Check Captcha action *before* the other actions? If it is at the end of the event then it won't run until after the other actions.

Bob
wayne.regehr 15 Dec, 2014
Bob,

Below are the actions for the form (On Submit):

Server Validation On Success (nothing) On Fail (Event Loop)

Event Switcher On Success (nothing) On Fail (JS, Event Loop)

Check Captcha On Success (nothing) On Fail (JS, Event Loop)

DB Save

Email

Load JS

Display Message

Let me break down what is happening for clarification. This is an event registration form. Upon submitting, I am validating using PHP. Next I have some JS to compare the number of tickets being asked/requested vs available (Event Switcher). After those two actions proceed, then the Captcha validation is next.

I believe that the rest should be straightforward. The only thing to be aware of is that the various JS except the Event Switcher, are to return the browser view to display the form.

I would agree with you that the ordering may be affecting the Captcha validation in a negative manner. What is the suggested ordering? Please keep in mind I do need the Event switcher to check the tickets request vs available (JS - requires it occur on the same page).

Thanks for your assistance Bob.
wayne.regehr 15 Dec, 2014
Answer
After conducting many tests with the ordering of my actions to no avail, I decided to rebuild my form quickly in an attempt to isolate the issue.

Nothing note worthy came from this, however the form in question is now functioning correctly. The Captcha error message is no longer being displayed, even when entered correctly.

It is difficult for me to understand the exact issue, but I believe it may have been a caching issue (browser and/or form).

Consider this thread solved. Again, thanks for assistance.
This topic is locked and no more replies can be posted.