How do I view ViewState in Salesforce?
View State Tab
- From your personal settings, enter Advanced User Details in the Quick Find box, then select Advanced User Details. No results?
- Click Edit.
- Select the Development Mode checkbox if it isn’t selected.
- Select the Show View State in Development Mode checkbox.
- Click Save.
How can I see the view state of a VF page?
To monitor view state, you must first enable this by going to My Settings | Personal | Advanced User Details and clicking Edit. Select the Development Mode AND Show View State in Development Mode checkboxes and click Save.
What is ViewState Salesforce?

View state holds the state/size of the visual force page that includes the components, field values, and controller state. This is important in the light that salesforce provides only a standard size of 135kb for any individual page.
How do I check my view state?
You can access view state in your code by using the page’s ViewState property. The ViewState property is a dictionary that contains key/value pairs that contain the view state data. Security Note: It is easy for a malicious user to see and modify the contents of a hidden field.
How do I fix viewstate error in Salesforce?
In order to reduce the view state, make use of the following:
- “Transient” keyword – to declare instance variables that can’t be saved, and shouldn’t be transmitted as part of the view state for a VF page.
- Minimize the number of forms i.e on a page.
- Refine your SOQL to retrieve only the data needed.
What are states in VF page in Salesforce?

ViewState holds state of the visualforce page that holds state that includes the fields, components and controller state. Viewstate data in encrypted and cannot be viewed tools like firebug. There is a limit of 135KB of view state.
How do I debug a view state error in Salesforce?
Under your user profile, enable Development Mode and View State. Then, navigate to the page you’re working on; it will be in the bottom section (the code editor). Thanks for the tip; that’s the answer.
What is data skew in Salesforce?
When you have a very large number of child records associated to the same account in Salesforce, we call that “data skew”. When you have a very large number of child records associated to the same account in Salesforce, we call that “data skew”.
What is view state size in salesforce?
Salesforce allows Visualforce pages to have a maximum view state size of 170KB. The View State tab shows you which elements on your page are taking up that space. A smaller view state size generally means quicker load times. In order to avoid this error, minimize your pages’ view state.