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

Local Action with Change on When condition does not work

SA-34249

Summary



A Change event of a drop-down control specifies that the application start a Local Action based on a When rule. But the Local Action does not start even though the When rule has been successfully evaluated.


Error Messages



Not Applicable

Steps to Reproduce

  1. Add a drop-down control in the section and specify an Action with a Change event and the Action > Run Activity > Local Action.
  2. Add a When condition (a When rule) for the Local Action. The When rule should contain an evaluated property that is set in one of the activities that ran prior to the Local Action.



Root Cause



An issue in the custom application code or rules
The property value should be present in the DOM for the When condition to work. It can be a hidden property.


Resolution



Perform the following local-change:
  1. Create a hidden text field, for example, A, in the section where the drop-down control is defined.
  2. Call the Set Value action before the Local Action to set the property A (created in Setp 1) with the activity output value. .
  3. Check for property A (defined in Step 1) on the Local Action.

Published May 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