I have a page include that the set focus is not going to the first editable field of the field editor any longer.
I expect to see a blinking cursor in the scan item field when the page include opens.
I used to have a snippet that used to work to ensure the set focus went to the “Scan Item” field but that stopped working also. I have tried two different versions of the snippet that have worked in prior Skuid versions but nothing has worked so far in version 12.
1st JavaScript Version
var field = argumentse0];
$ = skuid.$;
var delay = ( function() {
var timer = 0;
return function(callback, ms) {
clearTimeout (timer);
timer = setTimeout(callback, ms);
};
})();
delay(function(){
$('.nx-field > input').first().focus();
$('.nx-field > input').first().select();
}, 400 );
var params = argumentse0],
$ = skuid.$;
2nd JavaScript Version
var field = argumentse0];
$ = skuid.$;
var delay = ( function() {
var timer = 0;
return function(callback, ms) {
clearTimeout (timer);
timer = setTimeout(callback, ms);
};
})();
delay(function(){
$(‘.nx-field input, .nx-field textarea, .nx-field .flex-text-wrap pre, .nx-field .nx-richtext-input’).first().focus();
$(‘.nx-field input, .nx-field textarea, .nx-field .flex-text-wrap pre, .nx-field .nx-richtext-input’).first().select();
}, 400 );
var params = arguments 0],
$ = skuid.$;
console.log (‘Script Running’);```