Iterate through form?

Is it possible to iterate through the fields on a form, i.e. I want to disable all the form fields initially and then enable them after an event, currently doing something like

bankAccForm._disableItem("accounttype");
bankAccForm._disableItem("accountname");
bankAccForm._disableItem("accountdesc");
bankAccForm._disableItem("savebutton");

then…

bankAccForm._enableItem("accounttype");
bankAccForm._enableItem("accountname");
bankAccForm._enableItem("accountdesc");
bankAccForm._enableItem("savebutton");

…but it would be easier if I could iterate through the form collection in a loop…

You can use forEachItem() method:
docs.dhtmlx.com/doku.php?id=dhtm … oreachitem