I’ve found the FAQ app to be really buggy. Not attaching to strips properly and overall a pain to use. So, I have built my own FAQ with a repeater and a database. (The added benefit is that I can update FAQ’s from the dashboard).
This is the code and it works perfectly! Except, it would be incredibly helpful if I expand a new repeater item, the previous would collapse. Is this possible? How would you do this
export function faqExpand_click(event) {
let $item = $w.at(event.context);
if( $item("#faqAnswer").collapsed ) {
$item("#faqAnswer").expand();
$item("#faqPlus").label = "-"
}
else {
$item("#faqAnswer").collapse();
$item("#faqPlus").label = "+"
}
}