Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Onclick action not working for Accordion

SA-34420

Summary



User has added an accordian in a portal and has configured an OnClick event of the accordian.

During runtime, the user observes that on clicking of the header of the accordiant, the Onclick event does not trigger but does so if user click on the accordiant body.

User expects the onclick event to be triggered on click on the accordian header.


Error Messages



Not Applicable


Steps to Reproduce



1. Add an accordian to a portal and add an onclick event.
2. During runtime, click on the accordian header.


Root Cause



The On Click action on the accordion will not be rendered on the header but the entire accordion.

The header has been designed to only expand or collapse the accordion content.


Resolution



Add an icon to the header and configure the On click event on it.

Published March 15, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us