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:
co-authored by
Claude Sonnet 4.6
parent
4f58d6bf16
commit
2ed9eff653
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user