Support Article
Validation messages do not display in read-only mode fields
SA-79294
Summary
Validation messages do not display when the control is in the Read-Only mode despite checking the 'Show validation messages in read-only mode' checkbox in the control. However, the message is present in the Clipboard.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a Tab layout and include a section which contains a control Save As from the out-of-the-box pxDisplayText control.
- Include this section in the harness in the Custom error section.
- Include a grid in the Tab Layout section and configure a Delete icon.
- Set the Validation message to that control on click of the Delete icon.
Root Cause
Property value was used in the Value dropdown which was rendered in the Read-Only mode. This was considered as a label and validation was not added for the label.
Resolution
Perform the following local-change:
Set the control Value to 'Display text of selected option'. This makes the control as a text input and the text input triggers this validation.
Published August 15, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.