elements.blah.requestFocus(true);

Not sure if this is a bug or not…but in my case it is annoying behaviour

I have a field named blah, on the form it also has a elementname.

I have an OnDataChange (also on blah) script that will requestfocus on blah whenever a criteria is met.

If I leave the field with a mouse, the requestfocus works nice.
When I use tab to leave the field…the requestfocus doesn’t work and it moves to the next field.

Not sure what your problem is, please provide sample solution to demonstrate problem

I also found out…that bug only occurs if the next field has a combo on it and it combination with using tab to move to the next field

test123.servoy (4.35 KB)

Due to the nature of event processing its not possible to guarantee that a requestFocus will succeed (that why its called “request…”)
What happening is during a focus transfer you try to set the focus back but the editable-combobox does a requestfocus on his internal field after your request and wins.