Support Article
Field is editable instead of read-only with blank property value
SA-59708
Summary
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.
Error Messages
Not Applicable.
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
Root Cause
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.
Resolution
Perform the following local-change:
In the read-only expression change .checkboxproperty==false to (.CheckboxProperty==False||.CheckboxProperty=="")
Published August 24, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.