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
KrishnadasKrishnadas 

Loosing values entered in the VF page

Hi,

I have created some visualforce pages that override the new and edit functions of custom objects. In the Edit Visualforce page I have shown some fields as output only so that the user cannot change the values in it. I did it using the <apex:outputField> tag. 
There are other fields where the user can modify the value. I also have some validation rules set on them. The issue that I face is that when I encounter an validation error on the UI I loose all the values from the page and it shows blank. This is not an issue all times. It happens very rarely to be precise the VF page works fine 99% of the time and looses value 1% of the time.
Could some point out the reason that the page could loose the value. I also notice when this happens I also loose all the Ids that are there in the URL. Any pointer or suggestion could be very helpful.

Thanks
Krishnadas
Steadfast Global
www.steadfastglobal.com