263
Views
3
Comments
Solved
Close Accrodion Once action complete
Question

Hi All,

I have one requirement. that in one list record have multiple accordion and particular accordion have some content.

What I need once user click on Particular accordion content action once it complete it will close automatic.

I used some js code but it is not helpful


Thanks in advance.

Amogh

2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi Amogh,

Use Benjit Solution, it is nice solution for your problem.


Regards

Rahul

2022-10-16 15-30-09
Miguel Chaparra

Hi Amogh,


If you are working with a reactive app, you can open or close an AccordionItem by changing the value of the property isExpanded, using a boolean variable.

You can create an action to control the value of the boolean variable used to open or close your AccordionItem and set it in the AccordionItem's onToogle event and use a similar assign in your Button.


Hope it helps!


Regards,

Miguel Chaparra

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Amogh,

In addition to @Miguel solution, I also want to include the sample app fulfilling the mentioned use-case --> Using JS and normal logic

See the sample app

Logic Steps:

Introduce an boolean adhoc attribute in the list mapped with the accordion widget and modify the current boolean attribute value accordingly


Please refer the attached .oml solution file


Hope this helps you!


Regards,

Benjith Sam

ReactiveAccordionTask.oml
2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi Amogh,

Use Benjit Solution, it is nice solution for your problem.


Regards

Rahul

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.