I have created a custom FAQ section using a repeater. I would like to open only one collapsed item at a time. I have my repeater connected to a dataset which holds the questions and answers.
Heres what happens currently:
Heres the functionality Im looking for:
Heres the code I have currently:
$w.onReady(function () {
});
export function container2_click(event) {
if( $w("#text45").collapsed ) {
$w("#text45").expand();
$w('#arrowUp').show();
$w('#arrowDown').hide();
}
else {
$w("#text45").collapse();
$w('#arrowUp').hide();
$w('#arrowDown').show();
}
}
I have read through the repeater API but couldn’t find a solution. Any help would be great.
Thanks.