BrightLeaf Digital Code Snippet Library
Check out our growing library of code snippets for Gravity Forms!
Merge Tag for Gravity View Edit Entry link
GOAL
Create a custom merge tag that outputs a secure GravityView Edit Entry link for the current entry when displayed inside a GravityView context.
The snippet registers the merge tags:
{gview_edit_entry_link}{gview_edit_entry_link:Link Text}These tags generate an edit link to the current entry within the active GravityView.
WHAT IT DOES
-
Generates a GravityView Edit Entry link for the current entry.
-
Uses the current View ID automatically (no configuration required).
-
Ensures the link is only displayed if the current user has permission to edit the entry.
-
Supports custom link text.
Customizing the Link Text
You can customize the text displayed in the edit link by adding text after the merge tag using a colon.
Syntax
{gview_edit_entry_link:Your Link Text}Example
{gview_edit_entry_link:Update your submission}Default Behavior
If no link text is provided, the merge tag will automatically use: Edit Entry
WHERE IT WORKS
The merge tag works in any content processed through Gravity Forms merge tags, including:
-
GravityView Custom Content fields
-
Gravity Forms confirmations
-
Gravity Forms notifications
-
Any text processed through
gform_replace_merge_tags
This code is best installed directly on your site using the Code Snippets plugin.
Loading...
Review this entry
You must be logged in to post a comment.