function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ArunForceArunForce 

Apex page messages not get clearing after validation.

Hi,

I have Custom visualforce page which has two inputFields along with a button as Save.I have written some validation rules, which are working fine and it is getting displayed on the top of page. But the thing is though I entered the correct values and click on save button the eror messages are still appearing and not allowing to save the values. Please can someone help me in finding a solution. 

 

Thanks,

Arun.

Puja_mfsiPuja_mfsi

Hi,

Could u please put your code here.

 

Avidev9Avidev9
Well seems like its not due to "Not getting clear the page messages". Page messages are still appearing because the page validation still failed. Please check your code/data and it should be workign
gbu.varungbu.varun

Hi, You are not refreshing page after save. You can rerender after save button but apex:pageMessages should be inside rerender reason.