->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.
This my current code :
The problem that my js callback function is fired only the first time.