Field is editable instead of read-only with blank property value
The field displays as editable when it uses a read-only expression as false value of a property. The system does not consider a blank value as false and hence, displays the field in the editable mode. However, this worked in Pega 7.1.8.
Steps to Reproduce
- Create a section
- Add a field for an input and add a read-only expression with a condition as false to a different property
- Enter a blank value for the property in read-only expression and check the section. The input filed is editable
A defect in Pegasystems’ code or rules.
The execution of the handleEvaluateWhen and evaluateWhen expressions are different. The handleEvaluateWhen expression does not consider blank values as false while evaluateWhen considers it.
Perform the following local-change:
In the read-only expression change .checkboxproperty==false to (.CheckboxProperty==False||.CheckboxProperty=="")
0% found this useful