Hi, for the life of me I can’t figure out why this code isn’t working. Hoping someone can help me.
I have two buttons and two container boxes. I would like the content for each box to show when clicked, and have the other content hide when this happens.
export function communityEngagementButton_click(event) {
$w("#communityEngagementBox").expand();
$w("#communicationsBox").collapse();
}
export function communicationsButton_click(event) {
$w("#menubox2").expand();
$w("#communicationsBox").collapse();
}
export function communityEngagementBox_mouseOut(event) {
$w("#communityEngagementBox").collapse();
}
export function communicationsBox_mouseOut(event) {
$w("#communicationsBox").collapse();
}
I’ve also tried the following code to no avail.
export function communityEngagementButton_click(event) {
if ($w("#communityEngagementBox").hidden) {
$w("#communityEngagementBox").show();
$w("#communicationsBox").hide();
}
else {
$w("#communityEngagementBox").hide();
$w("#communicationsBox").show();
}
Nothing happens on click. Really confused, looking for some help!