You need to sign in to do that
Don't have an account?

How to remove the error message from the top of the VF page???
I have a VF page with <apex:messages/>,a field which has a validation rule and ApexPages.AddMessage() method in the class.
The validation written for field is to display an error message at the field.but it is displaying the error message at the top of the page also.
So How can I remove the Top message with out removing the <apex:messages/> tag.
I got my solution for this. Instead of using a validation rule I have used the code to display a validation error and rendered an output label to display the error message....
All Answers
1. Rerender the only section where your field is present.
2. Use pageMessage tag and message in it dynamically.
Hi Bhavani,
Thanks for the reply.
but this field also exists in the same section where the other fields are there.This field has to be there in that section.
Is there any ??
I got my solution for this. Instead of using a validation rule I have used the code to display a validation error and rendered an output label to display the error message....