So I have a page that offers four different programs which I’ve separated into columns. My plan is to have a button with “Learn More” on each of the columns and that when a user clicks that button a strip is revealed with that program information from the bottom of the page/takes up the entire screen.
I’m currently working with this code:
export function Strip1_viewportEnter() {
$w (‘#Strip1’).hide();
}
export function button26_click() {
$w (‘#Strip1’).show();
}
However it’s not complete because even though I click the button the strip immediately disappears in a flash, so there must be some sort of command to have the strip stay visible after the button is clicked.
I also want the strip to disappear if they click on another “Learn More” button or click the “X” button I have on the strip.
I’m not a coding expert so I may be using the wrong thing entirely.