The space list macro provides a list of spaces however the category value changes apparently to whatever was last used.
I need to set the value for the category list to a default value whenever the page is refreshed.
Tried the following but it had no effect.
<div>
<script>
let teamOptions = document.getElementsByName("spacesSelectedTeam")[0].options;
for (let i = 0; i < teamOptions.length; i++) {
if (teamOptions[i].value == "ttgkb") {
// Item is found, set its property and exit
//teamOptions[i].selected = true;
break;
}
}
</script>
</div>