form_cliente: leer inputs de texto en evaluador de condiciones

Permite usar campos linked (texto) como controladores de secciones
condicionales; necesario para ocultar datos obstétricos según género.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-23 12:33:16 -05:00
co-authored by Claude Sonnet 4.6
parent 4f58d6bf16
commit 2ed9eff653
+2 -1
View File
@@ -1234,7 +1234,8 @@ function iniciarCondiciones(esquema) {
} else {
const radio = ctrl.querySelector(`input[type="radio"]:checked`);
const sel = ctrl.querySelector('select');
const v = radio ? radio.value : (sel ? sel.value : '');
const inp = ctrl.querySelector('input[type="text"],input[type="hidden"]');
const v = radio ? radio.value : (sel ? sel.value : (inp ? inp.value : ''));
activo = valoresCond.includes(v);
}