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

Onchange doesn't work with radio button



When 'On change- Refresh Section' event is configured for a radio button, it is taking a long time for the section to refresh. Screen loads fine if anywhere else is clicked.

Error Messages

No error message

Steps to Reproduce

  1. Create a radio button property, which has two values: Yes ; No 
  2. Add this property in a section. Configure On Change – Refresh this section behaviour, and call an activity when the section refreshes. 
  3. To test if on change refresh is working, in the refresh activity, do a property set such that when user selects “Yes”, the text field below the radio buttons get loaded with a value.
  4. Run the flow. Click on “Yes”. Notice that the value in the text field is blank.
  5. Click anywhere in the section, and notice that the value is loaded now, i.e, on the second click.

Root Cause

The reported behaviour is by design. On change will not work properly for Radio Buttons. This is the reason we generate data-click even if user configures onchange for auto-generated radio buttons in newer versions. 


Performing the following local change mitigates the problem:

1. Set a default value, to say “Yes”, in the radio button’s properties. Configure OnClick – Refresh the section instead of OnChange.


2. When the flow gets executed, the radio button has a pre-set value of “Yes”. 


3. When the user clicks on “No”, the refresh action along with the refresh activity gets executed, and the appropriate value gets attributed to the text area / text input field.



Published January 31, 2016 - Updated October 8, 2020

Was this useful?

100% 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