Skip to main content

Support Article

Local action is running on all conditions



A button is configured with Onclick event with Refresh Section then calling an Activity and then call Local Action feature.

Before calling local action a When condition is set that is when a property(Temp.pyNote) has value other than "Err", then only local action will be triggered.

This local action is triggered even if When condition is failing, that is, the property is not equal to 1.

The property value is getting updated inside the activity before the When condition is checked.

Error Messages

Not Applicable

Steps to Reproduce

1. Create a button.
2. Add a click event and add "Refresh section" in that call an activity to update the property on which local action to be launched, "Launch Local Action" to it.
3. In Activity modify a property value and use that same property in a When condition before launching "Local Action".

Root Cause

User configuration issue.


Perform the following local-change:

When rule on Local Action would consider property values only from Document Object Model (DOM) and not from clipboard.

In order to make this work, perform the following steps:

1. Create a "Hidden text" field, say A in the section where button is configured.
2. Call 'Set Value' action before "Local Action" to set the property- A (created in step 1) with activity output value.
3. Check for property - 'A'(defined in step 1) on Local action.

Suggest Edit

Published March 15, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

33.333333333333% found this useful

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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