diff --git a/src/Resources/contao/dca/tl_form_field.php b/src/Resources/contao/dca/tl_form_field.php
index b0a38f1..4e18ddb 100755
--- a/src/Resources/contao/dca/tl_form_field.php
+++ b/src/Resources/contao/dca/tl_form_field.php
@@ -1,7 +1,17 @@
[
+ 'recaptcha3_threshold' => [
'label' => &$GLOBALS['TL_LANG']['tl_form_field']['recaptcha3_threshold'],
'inputType' => 'text',
'sql' => "varchar(8) NOT NULL default ''",
@@ -13,8 +23,4 @@
'sql' => "varchar(120) NOT NULL default ''",
'eval' => ['tl_class' => 'w50', 'rgxp' => 'recaptcha']
],
-];
-
-if (Config::get('recaptchaType') != 'recaptcha3') return;
-
-$GLOBALS['TL_DCA']['tl_form_field']['palettes']['captcha'] = str_replace(',type,label', ',type,label,recaptcha3_threshold,recaptcha3_action', $GLOBALS['TL_DCA']['tl_form_field']['palettes']['captcha']);
+];
\ No newline at end of file
diff --git a/src/Resources/contao/dca/tl_settings.php b/src/Resources/contao/dca/tl_settings.php
index 2654a8d..9846e1e 100755
--- a/src/Resources/contao/dca/tl_settings.php
+++ b/src/Resources/contao/dca/tl_settings.php
@@ -1,23 +1,29 @@
[
'label' => &$GLOBALS['TL_LANG']['tl_settings']['recaptchaType'],
'inputType' => 'select',
- 'options_callback' => function ()
+ 'options_callback' => function ()
{
return [
- 'invisible' => 'reCAPTCHA v2: Invisible',
- 'recaptcha2' => 'reCAPTCHA v2: Checkbox',
+ 'invisible' => 'reCAPTCHA v2: Invisible',
+ 'recaptcha2' => 'reCAPTCHA v2: Checkbox',
'recaptcha3' => 'reCAPTCHA v3',
];
},
diff --git a/src/Resources/contao/templates/ce_background_recaptcha.html5 b/src/Resources/contao/templates/ce_background_recaptcha.html5
index 896e220..bdf7cc5 100644
--- a/src/Resources/contao/templates/ce_background_recaptcha.html5
+++ b/src/Resources/contao/templates/ce_background_recaptcha.html5
@@ -1,7 +1,7 @@
recaptchaType != 'recaptcha3') return; ?>
-
-