From dc8f676f757a4e36e1fade1844cb9a73a249f454 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Mon, 24 Jun 2024 17:11:39 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07559=20-=20Fix=20radio=20buttons=20in=20?= =?UTF-8?q?template=20fields?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/form_field.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/form_field.js b/js/form_field.js index 2ebcebf72..9e19b57b8 100644 --- a/js/form_field.js +++ b/js/form_field.js @@ -95,7 +95,14 @@ $(function() value = $(oElem).val(); } } - else if($(oElem).is(':checkbox') || $(oElem).is(':radio')) + else if( $(oElem).is(':radio')) + { + if($(oElem).is(':checked')) + { + value =$(oElem).val(); + } + } + else if($(oElem).is(':checkbox')) { if(value === null) {