Forums

ReCaptcha not working in 4

tkuhrt 07 Feb, 2011
Im having trouble getting Recaptcha to work. What is the difference from Chronoforms 3? What steps do I need to make it work?
GreyHead 07 Feb, 2011
Hi tkuhrt,

I can give you part of the answer.

To get it to display in your form you need: [list]
  • a Custom Element with {ReCaptcha} in the code box - plus whatever other text you want.
  • A Load ReCaptcha Action in the OnLoad Events box (defautl configuration should be OK.
  • [/list]

    To get it to work . . . I guess that you need the Check ReCaptcha Action in the OnSubmit Events box . . . but it doesn't seem to do anything as far as I can see :-(

    I know that Max built it for a client but I have no idea how to get it working.

    Bob
    tkuhrt 07 Feb, 2011
    Thank you. That worked. Now I am just getting a blank email on test...actually just the IP it came from. You used to be able to edit the email the receiver got. Is this no longer an option?
    GreyHead 07 Feb, 2011
    Hi tkuhrt,

    If you submit the form with an invalid ReCaptcha message do you get an error?

    You have to enter he Email Template code by hand - there is no default template yet in v4.

    Bob
    tkuhrt 07 Feb, 2011
    I figured out that you have to make the email message. You are correct.

    Captcha doesn't work properly if entered wrong.
    Max_admin 07 Feb, 2011
    Hi,

    In V4 you need to add your email template, this can be done in the "Email settings" box under the "Template" tab as per the new V4 RC1.3 released today, just click the config icon in the email box.

    As Bob said, you need the "Load ReCaptcha" in the "onLoad" event BEFORE the "Show HTML", this will load the recaptcha from the recaptcha server, then you need a "check recaptcha" in the "on Submit", to control your form flow based on the recaptcha response, insert whatever you want in the "Check Recaptcha" action "onSuccess" or "onFail" events, if you want to halt your form processing then insert a "show stopper" action OR insert an "Event loop" and select the "target event" in the settings as "OnLoad" to reprocess your form's load event😉

    Regards,
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    GreyHead 07 Feb, 2011
    Hi tkhurt,

    I spent an hour digging in the code and found out that this seems to be what you need . . . though I didn't know what the Event Loop action did until I read Max's post.

    Bob
    tkuhrt 07 Feb, 2011
    I have exactly what you have. I added the Event loop and set it to On submit>check ReCaptch> On Fail. Quit next action : yes.

    I get a server error. Doesnt go anywhere. I was thinking I needed an Event Loop for Success and Fail but either way I get the error.

    I've tried different variations and the Recaptcha sends the email even if I dont type the Recatch correctly or I do.

    Any more specifics on the Success and Fail with Event Loop within I may try?

    Thanks for your time!
    GreyHead 07 Feb, 2011
    Hi tkuhrt,

    Here are my settings for the Event Loop

    Bob
    tkuhrt 07 Feb, 2011
    I've done all of this.
    The first time I fill out the form and then only do half of the ReCaptch verification I do get a try again statement.

    The second time I do it and only do half of the ReCaptch verification My form is sent with no problem. Even if the Captcha is not finished.

    I'm at a loss.
    tkuhrt 07 Feb, 2011
    ...part 2 of this.

    I tried putting in the wrong letters and it would ask me to try again every time. If I just write the first word and not the second it goes through. Hmmm
    GreyHead 08 Feb, 2011
    Hi tkhurt,

    If I just write the first word and not the second it goes through

    I think that is the way recapture works. One of the words it knows the answer to, the other one is a test word to be used in future ReCaptchas once there is agreement on what it is. http://www.google.com/recaptcha/learnmore

    I hadn't realised that the check word was always the first one though.

    Bob
    tkuhrt 08 Feb, 2011
    Ah, good to know. I only did it a few times so maybe you are right.

    Thanks for your help.
    Johang 23 Feb, 2011
    I also had a lot of problems with the captcha. After reading this item I solved it in this way:
    The first event at "On Submit" is "Check Captcha". In "On Fail" I put an Event loop with the settings Target event= On Load, Quit next actions = Yes.
    As far as i tested it, its working perfect and is only accepting the captcha shown in the window.
    http://www.jig-design.nl/test
    needshelp 04 Apr, 2011
    My brain just blew up. Love the v4, but it's a bit complex, even for me...😲 Must be the fact I'm use to the wizard on v3,super easy to use.
    This topic is locked and no more replies can be posted.