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

Radio Buttons loosing focus due to OnClick refresh event

SA-1935

Summary



A Section used to set a couple of Radio Buttons isn’t behaving as expected. All the Radio Buttons were configured with OnClick event in order to refresh the Section and display new parts of said Section.
When clicking with the mouse or moving with arrow keys with the clipboard from a Radio Button option to another, the focus is moving unexpectedly to the original selection automatically.

Scenario:
1. A Section is being used which displays 4 different Radio Buttons.
2. Each of those Radio Buttons are having an OnClick event setup to refresh the Section.
3. Clicking from one option to another is firing the refresh but the focus is moving automatically to the original value selected.



Error Messages



none


Steps to Reproduce



I never managed to reproduce it internally, but the steps are the following supposedly:
 
  1. Create a Section with multiple Radio Buttons.

 
  1. Setup OnClick event on each Radio Buttons.

 
  1. Click on the Radio Buttons

 
  1. Focus should be lost, moving back to original value.
 

Root Cause



The Section containing the Radio Buttons was contained within a Section that had refresh rules being evaluated on click of those properties.
This double refresh sort of action was generating the reset of Radio Buttons focus.


Resolution



A simple local change has been implemented. The double refresh configuration with the explained two Sections wasn’t appropriate and it wasn’t implemented to reach any associated business needs.
So the configuration has been simplified and only one Section has been implemented.
 

Published January 31, 2016 - 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