diff --git a/js/ppom.inputs.js b/js/ppom.inputs.js index e3b63699..e389c267 100644 --- a/js/ppom.inputs.js +++ b/js/ppom.inputs.js @@ -180,9 +180,8 @@ function ppom_init_js_for_ppom_fields(ppom_fields) { return; } - const multiple = input.dataset.allowMultiple; - - if ( ! multiple ) { + const multiple = input.dataset.allowMultiple || false; + if ( multiple ) { if (input.dataset.required) { input.checked = true; }