Question
2
Replies
4839
Views
Posted: January 18, 2018
Last activity: January 18, 2018
How to display an error message on the screen?
I've validated a text field by java code and I would like to display an error message on the screen using something different than java alert.
For example, I have a text field for "identity document" information, in this field I have a java validation that return true in case of sucess or false if the document is incorrect.
How can I set multiple error messages with Pega 7? And how can i show this messages?
Regards,
Felipe
What about using a Rule-Edit-Validate to check the validity? You can use the same Java code you have now. Or perhaps a Rule-Edit-Input is more appropriate? See the OOTB Rule-Edit-Input!DateTime which predefines "theProperty" and allows you to add an error message like this:
theProperty.addMessage(e.getMessage());