';
$html .= '
';
$html .= ' ';
$html .= ' Comportamiento';
$html .= '
';
$html .= '
';
// Score Threshold
$html .= '
';
$threshold = $this->renderer->getFieldValue($componentId, 'behavior', 'score_threshold', '0.5');
$html .= $this->buildSelect(
'recaptchaScoreThreshold',
'Umbral de Score',
$threshold,
[
'0.3' => '0.3 - Permisivo (menos bloqueos)',
'0.5' => '0.5 - Balanceado (recomendado)',
'0.7' => '0.7 - Estricto',
'0.9' => '0.9 - Muy estricto (mas bloqueos)'
],
'Score minimo para considerar humano (0=bot, 1=humano)'
);
$html .= '
';
// Fail Open
$html .= '
';
$failOpen = $this->renderer->getFieldValue($componentId, 'behavior', 'fail_open', true);
$html .= $this->buildToggle(
'recaptchaFailOpen',
'Permitir si API falla',
$failOpen,
'Si Google no responde, permite el envio (recomendado)'
);
$html .= '
';
$html .= '
';
$html .= '
';
$html .= '
';
// Action Newsletter
$html .= '
';
$actionNewsletter = $this->renderer->getFieldValue($componentId, 'behavior', 'action_newsletter', 'newsletter_submit');
$html .= $this->buildTextInput(
'recaptchaActionNewsletter',
'Accion Newsletter',
$actionNewsletter,
'Identificador para formulario newsletter'
);
$html .= '
';
// Action Contact
$html .= '
';
$actionContact = $this->renderer->getFieldValue($componentId, 'behavior', 'action_contact', 'contact_submit');
$html .= $this->buildTextInput(
'recaptchaActionContact',
'Accion Contacto',
$actionContact,
'Identificador para formulario contacto'
);
$html .= '
';
// Log Blocked
$html .= '
';
$logBlocked = $this->renderer->getFieldValue($componentId, 'behavior', 'log_blocked', true);
$html .= $this->buildToggle(
'recaptchaLogBlocked',
'Registrar bloqueados',
$logBlocked,
'Guarda log de intentos bloqueados'
);
$html .= '
';
$html .= '
';
$html .= '