I'm a beginner,
I have a group of check box like image below. How can I keep the Accordion DO NOT expand/collapse when I click on exactly the "SelectAll" Checkbox put on the header.
I need a simple way, I'll really happy if you tell me what I should do step by step!
Thanks all!
Hi Hoai,
For the mentioned use-case, I have created a sample app
Traditional web app -> Sample App | AccordionTask
Reactive web app -> https://www.outsystems.com/forums/discussion/66177/reactive-accordion-item-onclick-triggered/#Post262575
Please follow the below-mentioned implementation steps.
Steps to follow
JavaScript defined within the Web block
JavaScript Snippet
"<script> (() => { let customCheckBoxes = document.querySelectorAll('.jsClass'); customCheckBoxes.forEach(customCheckBox => { customCheckBox.addEventListener('click', function(e) { e.stopPropagation(); }); }); })(); </script>"
Hope this helps you!
Kind regards,
Benjith Sam
Hi Benjith,
Thanks you very much!
I was changed style class to The Web block name for each container I need and my problem is solved! xD
Best regards,
Hoai Linh
Hi
Please refer to the URL below. It works for me.https://www.outsystems.com/forums/discussion/45815/accordion-avoid-expansion-if-cllicking-on-specific-area/
Kind Regards
It's work, but in my case, I have 4 Accordions and it just effect on the first accordion!
What should I do to resolve my problem? :(
Hi Benjith Sam,
You are the best. I almost give up using the widget and to create my own. But your solution solved my issue. Thank you.