change dropdown names on page load

This commit is contained in:
2026-08-25 18:41:30 +01:00
parent af2092d8f8
commit 8f27c3658c
+2 -1
View File
@@ -377,7 +377,8 @@ function populateDropdown(containerId, items, codeKey, labelKey) {
<input type="checkbox" <input type="checkbox"
name="${containerId}" name="${containerId}"
value="${item[codeKey]}" value="${item[codeKey]}"
data-label="${item[labelKey]}"> data-label="${item[labelKey]}"
checked>
<span>${item[labelKey]}</span> <span>${item[labelKey]}</span>
`; `;
checkboxList.appendChild(label); checkboxList.appendChild(label);