When rule with Associated property is not working
User has configured the drop-down and onchange configured smartinfo action with when condition Associated property.
The smartinfo is getting displayed based on the previous value of the drop-down and it is working fine when user hardcode the value in when condition.
The issue is happening only if we set the target property value using Data Transform.
Steps to Reproduce
1) Create a drop-down with source as a data page.
2) In the actions menu, add an onchange action.
3)Above On-change, try to display a smart info conditionally, by adding a when condition on associated property.
4) Compare the value with another property value(as target).
5)Set the target value using Data transform. The smart info is not displayed when condition is met, condition is evaluated based on previous value in the drop down not the value selected by user.
A defect in Pegasystems’ code or rules.
When client side when condition evaluation is happening and property value is not present in the DOM, then it gives the server side evaluated value which is having the previous value because action got appended to the queue and at that time, the value was false.
Perform the following local-change:
Add a hidden field with the same property name which is getting set on data-transform in the section where the drop-down is configured.
0% found this useful