Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On click button onReCaptchaSuccess is fired only first ime, the next clicks onReCaptchaSuccess is not fired #228

Open
ahmed-bhs opened this issue May 24, 2019 · 0 comments

Comments

@ahmed-bhs
Copy link

This my current code :

            ->add('recaptcha', EWZRecaptchaType::class, array(
                'mapped' => false,
                'attr' => array(
                    'options' => array(
                        'theme' => 'light',
                        'type'  => 'image',
                        'size' => 'invisible',              // set size to invisible
                        'defer' => true,
                        'async' => true,
                        'callback' => 'onReCaptchaSuccess', // callback will be set by default if not defined (along with JS function that validate the form on success)
                        'bind' => 'btn_submit',             // this is the id of the form submit button
                        // ...
                    )
                )
            ));

The problem that my js callback function is fired only the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant