Good day all;
On a form I am designing I have 2 drop down menus labeled, directorate and division.
What I would like to do is when the user selects a directorate, the division drop down is only populated with a list of divisions that belong to the selected directorate.
I am sure I have seen this question asked before, but, I am at a loss to find it…..
Before I saw your post I found the following. In your option which one would be better to use? I am looking at 5 directorates and each directorate having an max of 7 divisions
if(boxA.rawValue == "month")
if(boxA.rawValue == "year")
I find it easier to do with a switch() statement and hand code it but if you have a lot of data doing some sort of loop through an array might be easier.
Below is just a small snip of quite a long list I have in one form. Using xfa.event.newText to get immediate response from the dropdown.
//on the Change event
var selection = this.boundItem(xfa.event.newText);
Desc.clearItems(); //Desc is the target dropdown
Desc.rawValue = "";
//above line needed to clear the displayed value in the next dropdown, clearItems() just clears the list.
Europe, Middle East and Africa