Discussion

3
Replies
10308
Views
muhammad mansoor (muhammadm)
mphasis

mphasis
IN
muhammadm Member since 2012 1 post
mphasis
Posted: October 14, 2015
Last activity: February 5, 2016
Posted: 14 Oct 2015 13:29 EDT
Last activity: 5 Feb 2016 5:21 EST
Closed

How to remove property name prefix in error messages set using Property-Set-Messages

Hi All,

I have a requirement to show error message for a certain field at both Property level and Page level at top of page. To accomplish this I am using Property-Set-Messages. But when the message is displaying at the page level it is always accompanied by the Property Name followed by the error message. The client requirement is to display only the error text at the page level. It should not be prefixed with Property Name.

To show the error at the top of page I am using a Custom error Section which will be visible if hasMessages condition is true and picks the error message using <%=tools.getPrimaryPage().getMessagesAll()%> embedded inside a label within the section.

Could you kindly advise how to eliminate the Property name from being prefixed at the page level error.

 

Thanks

User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.