How to get dependent dropdown to work with two words
I have Pro XI and currently use a script for dependent dropdowns that works fine...unless one of the options is two words..such as Chrysler Building. An example of the issue I'm having with the script is:
From the document level script:
myDropdownValues=["Yes", "No", "Might Be"];
this.getField("Dropdown1").setItems(myDropdownValues);
var AnswerData= { Yes: ["1", "2"],
No: ["3", "4"],
Might Be: ["5", "6"]
};
function SetFieldValues(cData)
{
this.getField("Dropdown2").setItems(AnswerData[cData]);
}
Yes and No work as expected, when I select those, the cascading options work, but Might Be causes an error message that won't clear unless I take the space between the words out. However since MightBe is not one of the Dropdown1 options, the cascading doesn't work. Might Be shows up in Dropdown1, but since the doc level script says MightBe, the cascading doesn't work for that options. The space between that word seems to be the problem. Do all cascading options have to be one word?
DHHS CDC