AnsweredAssumed Answered

How to make my form respond to programatically manipulations of selectmenu?

Question asked by Derrick Chiang on Feb 6, 2018
Latest reply on Feb 7, 2018 by Derrick Chiang

My form contains the Country selectmenu. When users select United States from that selectmenu, the States selecetmenu appears; when users select a non-US country, the States selectmenu disappears.

 

The problem is that my form isn't responding to programatically manipulations of the Country selectmenu. When I manually select United States, the State selectmenu appears correctly. But when United States is selected programmatically (for example, by using the following javascript code), the State selectmenu isn't appearing.

 

document.getElementById('Country').options[1].selected = true;

 

How do I make my form respond to programatically manipulations of the Country selectmenu?

Outcomes