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

When condition on Finish assignment does not work correctly

SA-48813

Summary



On clicking a button, the When rule associated with the button action does not return True and the action does not execute.


Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a Submit button.
  2. Run a data page on click of the Submit button.
  3. Configure a Finish assignment in case of a single result.


Root Cause



The property evaluated in the When rule was set using a data transform on the same button click as the When rule. Therefore, the work object was not committed to the database and the server when the new value was not retrieved.


Resolution



Perform the following local-change: Use a configuration that uses a hidden input field.
  • Set the When condition to 'Other Property' and specify the property that must be evaluated when configuring the Action condition.
  • Add an input field to the section (required only if the field is not already present).
  • Set the Control format to 'Hidden', on the Presentation tab of the Control, to hide the field if necessary.
  • Use a Refresh Section action to call the data transform to display the updated property value.



Published April 1, 2018 - 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?

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