From d7e2e1ef27f8736dad053ec2ad392065143a9cf2 Mon Sep 17 00:00:00 2001 From: Hugo Brosnahan <101022007+hugo-t-b@users.noreply.github.com> Date: Mon, 29 Sep 2025 11:48:46 +1000 Subject: [PATCH] Set checkbox/radio values correctly --- lib/mixins/acroform.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/mixins/acroform.js b/lib/mixins/acroform.js index e3dd0bb0..0f9ca4fa 100644 --- a/lib/mixins/acroform.js +++ b/lib/mixins/acroform.js @@ -373,11 +373,13 @@ export default { delete options[key]; } }); - ['V', 'DV'].forEach((key) => { - if (typeof options[key] === 'string') { - options[key] = new String(options[key]); - } - }); + if (options.FT !== 'Btn') { + ['V', 'DV'].forEach((key) => { + if (typeof options[key] === 'string') { + options[key] = new String(options[key]); + } + }); + } if (options.MK && options.MK.CA) { options.MK.CA = new String(options.MK.CA);