I have a following situation:
- I'm reading ProductionOrder from the barcode printed on my label.
- In list page, I put code on the Startup script
$(document).ready(function() { $("#x_ProductionOrder").focus(); });
$("#x_ProductionOrder")
is listed as third Extended search field. Idea is that after load, focus is on this field so the barcode scanner can be used without manually pointing to field. - After generation, behaviour is as follows:
Form is loaded, focus is for few moments on field$("#x_ProductionOrder")
, then changes to a first Extended search field (which is select2). Class of this first extended search field isselect2 select2-container select2-container--bootstrap5 select2-container--focus
.
Possible solutions:
- Change first Extended search field class? How to?
- Change field order ONLY on the searchbar / search page. How to?