Interaction sections

Hi there,
I have been using editor x for a short time and am creating my own portolio.
I am trying to figure out if it is possible to create interactions with sections on the same page.
I will try to explain what I plan to accomplish.
I have created a list of vertical job titles and I would like that whenever I click on that particular title a section appears under it with images representative of it. I have seen that it is possible to make the section invisible and then make it visible after the title is clicked, however this does not hide the section that includes that particular gallery and this makes the page too tall since the sections are visible while having the content not visible within them.
I noticed that in the page menu it is possible to hide the section but this is not included with interactions.
Does anyone have an idea on how it is possible to implement this idea?
I hope I have explained myself well

Sorry for my english, isn’t perfect :joy:

Hey @michelealbadesign ,

Thanks for reaching out and the English is fine. :grinning:

To do this, you would need code to collapse the section and then the click would expand the section or collapse it again.

This article shows how to do this with a multi-state box but I did it with just a section and the code below:

export function text17_click(event) {
 if ($w('#section12').collapsed)
    $w('#section12').expand()
 else $w('#section12').collapse()
}

blob:https://www.editorxcommunity.com/4bb6d96c-e5ec-4c32-9ea8-78db911e181b

Hi Roberto,
thanks for you reply,
I thought was possible to do it without code :sweat_smile: but i believe is impossible, my code skill is so bad, do you know any video tutorial about it?