This document has multiple onclick=“toggleExpand();”'s that are pulling in Snippets. The first onclick=“toggleExpand();” has a drop down list and based on what is selected in that drop down list (Section2, Section3, Section4), I would like additional fields to show from that snippet and also other onclick=“toggleExpand();”'s on the form.
Everything is based on that first drop down.
Can someone guide me on how to set up the script? This is what I have and it is hiding the selectors, but that is expected, because I don’t think I have it written correctly.
Selector: #div6, #div6header, #additionaldropdown
var mysnippet = loadhtml(‘snippets/Static.html’,‘#firstselection’);
if (mysnippet == “Section2”) {
results.attr("data-conditional", "");
results.show();
} else {
results.hide();
}