Tab order

Hi :slight_smile:
is it possibile to set tab order in a form (Vertical or horizontal)?

Hi

all items have tabIndex=0, another browser do
you can redefine them as you need

extension to get item (will return DOM element), add once after dhtmlxform.js loaded

(function(){ for (var a in dhtmlXForm.prototype.items) { dhtmlXForm.prototype.items[a].getItem = function(item){ return item; } } })(); dhtmlXForm.prototype.getItem = function(name){ return this.doWithItem(name, "getItem"); };

usage sample

myForm.forEachItem(function(name){ var item = myForm.getItem(name); var type = myForm.getItemType(name); console.log(item, type) });

depending on type you can get corresponding childNodes[i] and change tabIndex

thank you :slight_smile: