I have a page of dropdown boxes that get their options from a database collection. Each colum in the collection holds the values of a different dropdown.
The problem is when one colum has more items in it than another, the dropdown box with less items will show a blank space.
I have tried:
let dropdownOptions = $w("#myDropdown").options;
$w("#myDropdown").options = dropdownOptions;
to remove the last empty option in the dropdown list but it doesn't seem to work.
On page refresh it also selects that blank option in the box even though I have Placeholder text set...