Dependent dropdown menus in Acrobat forms
I am creating a form that has 2 dependent dropdowns. The first box has 4 choices. The second one will vary depending on the 1st. I am new to java, so I copied a script and edited it. I am receiving an error when trying to apply my script. The error and the script and both below. Please help! Thanks!
Acrobat Standard DC
Win 10 Enterprise

Here is my script:
++++++++++++++++++++++
myDropdown4Values = ["","Profitable growth", "Optimal outcomes", "Top talent", "Operational excellence"];
this.getField("Dropdown5").setItems(myDropdown4Values);
var Strategy = {
Profitable growth: ["","Diversification","Differentiation","Sales pipeline","Existing product innovation","New product innovation","Geographical expansion"],
Optimal outcomes: ["","Access","Quality","Risk Score Accuracy","Comprehensive Health","Utilization Management","Data Interfaces","Provider Collaboration","Individual Engagement","Stakeholder Satisfaction"],
Top talent: ["","Diversity and Inclusion","Culture and Infrastructure","Talent Management","Talent Recruitment","Talent Development","Thought Leadership","Learning and Growth"],
Operational excellence: ["","Go-to-Market Discipline","Security & Compliance","Cross-Functional Optimization","Data Analytics","Customer Service","Capacity Management","Seamless Integration"],
};
function SetFieldValues(cStrategy)
{
this.getField("Dropdown2").setItems(Strategy[cStrategy]);
}
Custom Keystroke Dropdown 4
if( event.willCommit )
{
if(event.value == "")
this.getField("Dropdown5").clearItems();
else
SetFieldValues(event.value);
}
