From 2ed9eff653d2eb461d8940e0481d5bf7f1482139 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 23 Jul 2026 12:33:16 -0500 Subject: [PATCH] form_cliente: leer inputs de texto en evaluador de condiciones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- form_cliente.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/form_cliente.php b/form_cliente.php index 4ce1194..15cd521 100644 --- a/form_cliente.php +++ b/form_cliente.php @@ -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); }