I took a look at the example, but I can't view the code used to create it.
Thanks for the help though,
I managed to get the combo boxes to populate correctly, by adding this:
if (!event.willCommit) {
var f = this.getField("ApproveByField");
f.clearItems();
switch (event.change) {
case "company 1":
f.setItems(["name1", "name2", "name3", "name4"]);
break;
case "company 2":
f.setItems(["name5", "name6", "name7", "name8"]);
break;
case "company 3":
f.setItems(["name9", "name10", "name11", "name12"]);
break;
case "company 4":
f.setItems(["name13", "name14", "name15", "name16"]);
break;
case "company 5":
f.setItems(["name17", "name18", "name19", "name20"]);
break;
case "company 6":
f.setItems(["name21", "name22", "name23", "name24"]);
break;
}
}
I just need to figure out how to put it all together now.
Thanks in advance.