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

Issue with Radio Buttons Control



Radio buttons control focuses on first element after screen returns from local action (ok button is pressed on modal dialog).
The selected value is properly selected, but the the focus is always set to the first value.

Error Messages

Not Applicable

Steps to Reproduce

1. Set radio buttons control on a section.
2. On action setting of the above, set Local Action (*any local action) for click action.
3. Click on any radio button value, and click OK on the local action.

Root Cause

After submitting the modal dialog it refreshes the section which launches modal dialog. It focuses the first editable element in the section. That's the reason it will select the first radio button which seems expected.


The explanation for this behavior is as follows: If having a set of radio buttons, and calling sectionReload or some refresh onChange of the radio buttons,  the focus will be set on the first option of the radio button, irrespective of the option selected. The option selected has no issues, but the only issue is with the focus, which is set on the first option.

This is completely an expected behavior but it is confusing for users. 

The local change of avoiding the call to sectionReload on submitting a modalDialog is not possible. This issue can be solved in only one specific scenario where you're calling the modalDialog onChange, but not all the cases gets resolved by the resolution. 

Published July 1, 2015 - 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