site:previewAsAdmin

This component shows detailed error messages on a site in administrator preview mode. We recommend that you add it right before the closing apex:page tag. Note: The site:previewAsAdmin component contains the apex:messages tag, so if you have that tag elsewhere on your error pages, you will see the error message twice.

The example above renders the following HTML:

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global