The {gv_magic_link} merge tag
The {gv_magic_link} merge tag adds a magic link to a Gravity Forms notification or confirmation. The person who opens the link gets the entry’s Edit Entry screen without logging in. Getting started with Magic Links explains how Magic Links works and how to set up a View for it.
Magic Links is built into GravityView Pro. To turn it on or off, go to Plugins and click Features in the GravityView Pro row.
Note: On a GravityView + Extensions (Legacy) license, Magic Links is a separate plugin. About the “GravityView + Extensions (Legacy)” license shows how to install it.
When the tag prints a link #
The tag prints a link only when all of these are true. Otherwise it prints nothing.
- Enable Magic Links is on in the View’s Magic Links settings tab.
- The entry was submitted through the View’s form.
- The entry has an email address. It comes from the field chosen in the View’s Email Field setting. With Email Field set to Don’t validate by email field, it comes from the form’s first Email field outside a Repeater field.
- For a delete link, Allow Entry Deletion is on in the Magic Links tab.
An Email Field set to a field inside a Repeater gives no address, so the tag prints nothing for any entry. The setting then shows “(inside a Repeater: no magic link can be sent for it, choose another field)” after the field’s name.
Adding the tag to a notification #
- In the form’s Settings, click Notifications and edit the notification.
- Click the Insert merge tag icon next to Add Media, above the Message box, and type
magicin the search box. - Under GravityView Pro, click Magic Link for View “<View name>” (#<ID>). The tag is added with that View’s ID, such as
{gv_magic_link view_id=123}. - Click Update Notification.

The tag works the same way in a form’s confirmation. When a form uses both, the confirmation and the notification of one submission contain the same link.
Parameters #
| Parameter | Required | Default | What it does |
|---|---|---|---|
view_id | Yes | None | The View the link opens. Without it, the tag prints nothing. |
text | No | Edit Entry, or Delete Entry for a delete link | The text of the link. |
format | No | link | url prints the address alone, without the link markup. |
action | No | edit | delete makes a link that deletes the entry. Any other value makes an edit link. |
post_id | No | The View | The ID of the page where the View is embedded. The link’s address then starts with that page’s address. |
Examples #
| Merge tag | Output |
|---|---|
{gv_magic_link view_id=123} | <a href="...">Edit Entry</a> |
{gv_magic_link view_id=123 text="Change your shift"} | <a href="...">Change your shift</a> |
{gv_magic_link view_id=123 format="url"} | https://example.com/view/volunteer-roster/entry/45/?edit=... |
{gv_magic_link view_id=123 post_id=456} | <a href="...">Edit Entry</a>, with the address of page 456 |
{gv_magic_link view_id=123 action="delete"} | <a href="...">Delete Entry</a> |
{gv_magic_link view_id=123 action="delete" text="Cancel my shift"} | <a href="...">Cancel my shift</a> |
How long a link works #
- A link works for the View’s Link Expiration, counted from when the link was made. The default is 15 minutes.
- While a link hasn’t expired, the tag reuses it, so sending a notification again doesn’t cancel an earlier link. To stop one, see Stopping a link that was already sent.
- After a link expires, the tag makes a new one the next time it runs. Opening the expired link shows the Request Edit Access form, where the person can ask for a new link.
Links and the edit deadlines #
A link opens the edit form only while every deadline on the View still allows editing:
- Edit Window on the Magic Links tab: how long after an entry is submitted it can be edited through a link. The default is 2 days. Once it has passed, the link opens the Request Edit Access form.
- The Edit Window section of the Edit Entry tab: its deadline applies to magic links too. Once it has passed, the link opens the message “The deadline for editing this entry has passed.” in place of the form.
The tag still prints a link after either deadline, so an email sent after a deadline contains a link that opens one of these messages.