Hi! I'm using an accordion inside a list (each list item contains an accordion). I'm trying to collapse an accordion item, but it doesn't work when it's inside the list. At first, I thought it might be a mobile issue, but when I move the accordion outside the list, the collapse function works fine.
Is there a proper way to use the collapse feature for an accordion inside a list? Or is this a known issue?
Thanks in advance!
Hi @jesu verso ,
"I have updated the code and attached the OML file here for review.I created a new structure and assigned the users list to a local variable of that structure type."
sorry for late reply sir. thanks it worked on my part!
Hi jesu verso, You can get the current widget ID using JavaScript and assign it to the AccordionItemCollapse action's widgetId property. I have attached the OML for your reference.
sorry for late reply sir. and thanks it worked!
Hello @jesu verso,
You can refer to the forum discussion.
https://www.outsystems.com/forums/discussion/80314/reactive-accordion-avoid-expand-and-collapse-on-specific-area-inside-a-list/
If possible, please share your OML file so I can review it in more detail.
Hope it helps.
Thank You.
Hello sir thanks for replying. here it is sir i create a button inside the accordion item and i named the accordion item to accrd and when i put accordionItemCollapse and the accrd.id doesnt recognize. Thank you sir
Hi @jesu verso,
I've tried the following,
List
Accordion
Accordion Items.
It's collapsing the Items, can check in the below url.
https://personal-sougpwxn.outsystemscloud.com/Test_InputOnChangeWithList/test
Now can you confirm is this the same use case.
Or can share the use case in more details will see.
hello sir thank you for your reply, we have the same use case but my button of collapse is inside the list too. isthere a way to it?
here it is sir i create a button inside the accordion item and i named the accordion item to accrd and when i put accordionItemCollapse and the accrd.id doesnt recognize. Thank you sir