Hi everyone,
I have a dropdown of which I am setting the value (taken from a dynamic dataset) using code. But after setting the value, the placeholder text just stays visible and the validity of the dropdown goes to false (and its borders turn red).
Basic code snippet:
let item = $w("#dynamicDataset").getCurrentItem();
let acc = item["out1_departing_nighttrain_accommodation_fromstation"].slice(36);
$w("#accommodationfromstation").value = acc;
// "#accommodationfromstation" is the ID of the dropdown, set correctly in the properties panel.
The result on screen looks like this (‘Acc.’ is the dropdown’s placeholder text).
On the same page, I also have a TextBox which is not expanding although I’m expanding it using code (here as well I’m sure the code is correct since the same code has worked perfectly before), so I suspect this could maybe have to do with a bug? Or am I missing something?
Anyone who can help me or maybe explain what I might be missing? Thanks!