Enable Enhanced Security: the secret attribute for shortcodes
Views have an “Enable Enhanced Security” setting that forces the use of a secret attribute on shortcodes. The “secret” is a type of password that prevents unauthorized users from guessing the View ID and accessing potentially-sensitive data. Read more about why we added the `secret` attribute.

Auto-enabled for new Views
This setting will be auto-enabled for new Views, and you can enable it manually for existing Views. The secret attribute is automatically generated, and is unique to each View.
Enabling or Disabling Enhanced Security
⚠️ Before you disable Enhanced Security, ask yourself:
- Does this View show any sensitive information?
- Would you be concerned if another editor on your site were able to view full contents of the View?
How to modify the Enable Enhanced Security setting:
- Edit the View,
- Go to the Settings box,
- Select Permissions
- Uncheck the "Enable Enhanced Security" setting.
- Update the View
When enabled, shortcodes showing data from the View require the secret attribute
When this setting is enabled, all shortcode instances of [gvfield] and [gventry] based on a View with this setting enabled will also require the secret attribute.
GravityView blocks in the WordPress Block Editor automatically use the secret; no additional configuration is required.
What happens when Views require a secret, but the shortcode doesn't have one
If the Enable Enhanced Security setting is enabled and the embedded View, block, or shortcode doesn't contain the secret attribute, the content won't be displayed. Instead, this message will appear instead on the page (only visible to Administrators):
The [gravityview] shortcode is missing or has an invalid "secret" attribute. Update the shortcode with the following attribute:
secret="abcde12f3gh4"
To resolve, edit the page and update the shortcode to include the secret, as shown in the message.
How to find a View's secret
The secret will be automatically generated for each View and can be copied from the Publish metabox inside the View editor.
It can also be found on the Shortcode column inside the All Views page for Views where this setting is enabled:
FAQs
Is there a way to change the View’s secret?
That's possible, but not built-in. If you know your secret has been exposed to a user on your website whom you don't want to have access to your contact, it is a good idea to change the secret. Contact support to learn how.