Hi,
It is a bit awkward without the form, but basically the script does not know which page6 your are referring to. When there is a single instance of the page, it can be referenced by "...page6.State", but when there are several instances of the page, they are referenced by "...page6[0].State", "...page6[1].State", "...page6[2].State", etc.
So the task is to find out which instance of page 6 the dropdown is in and then reference that instance. You will see from above that the index is zero based, it is a good idea to include a line that will print the output (i) to the Javascript Console (Press Control+J when previewing). You can comment this out (//) or delete it after testing.
The next thing is to resolve the node when combining the page SOM and the particular instance of it (i).
So:
var i = this.parent.index;
console.println("i: ", i); // when previewing press Control+J to see the output
var currentPage6 = xfa.resolveNode("TopmostSubform.Sub_Form_Section1.Page6[" + i + "]");
var newVal = this.boundItem(xfa.event.newText);
switch (newVal)
{
case "A":
currentPage6.State.clearItems();
currentPage6.State.addItem('x');
break;
case "B":
currentPage6.State.clearItems();
currentPage6.State.addItem('a');
...
break;
default:
break;
}
It may need some tweaking, but should be close to working.
Good luck,
Niall