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.
Hence I tried executing a script which invokes a function which inturn formats the mesages on pyOutput page. I was able to successfully do it, but Alas on the screen i still see the property names. I am suspecting that by the time am formatting the error messages it is too late in the sequence of events
Posted: 6 years ago
Posted: 5 Feb 2016 5:21 EST
Pratik Das (dasp5)
Manager, Application Engineering, Customer Service
My suggestion , for a Flow action Edit validate (Property level), Validate rules (Form level) and activity are the places where we can invoke error msgs according to a particular condition. The sequence in which they get called are Edit validate -> Validate -> Activity . We can avoid this problem if we can throw error msgs in activity rather than throwing at the validate level.