diff --git a/src/main/resources/org/biouno/unochoice/common/choiceParameterCommon.jelly b/src/main/resources/org/biouno/unochoice/common/choiceParameterCommon.jelly
index 324f733f..95974a18 100644
--- a/src/main/resources/org/biouno/unochoice/common/choiceParameterCommon.jelly
+++ b/src/main/resources/org/biouno/unochoice/common/choiceParameterCommon.jelly
@@ -22,17 +22,8 @@
-
+
+
@@ -49,4 +40,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/resources/org/biouno/unochoice/common/multi-select.js b/src/main/resources/org/biouno/unochoice/common/multi-select.js
new file mode 100644
index 00000000..6a3d4e21
--- /dev/null
+++ b/src/main/resources/org/biouno/unochoice/common/multi-select.js
@@ -0,0 +1,6 @@
+window.addEventListener("DOMContentLoaded", () => {
+ document.querySelectorAll(".multi-select-data-holder").forEach((dataHolder) => {
+ const { visibleItemCount, multiSelectId } = dataHolder.dataset;
+ document.getElementById(multiSelectId).size = visibleItemCount;
+ });
+});