GravityExport download URL shortcode
Sometimes you want to use the download URL as publicly available. But you don’t want to update all posts when you regenerate the URL for that form. Use a shortcode when you want to display download URL in WordPress and a Merge Tag when you wish to embed the download URL in Gravity Forms Notifications.
WordPress
You can render the URL for a form on the front-end by using the gravityexport_download_url shortcode.
Attributes
id- (required) the id of the form to get the download url fromtype- The file type, eitherxlsxorcsv. No type defaults to the predefined setting.
Full example
[gravityexport_download_url id=1 type=csv]
Notifications
A notification is sent when a user fills out your form. It’s easy to add a link to the download URL in a notification: Add a “Merge Tag”, a special Gravity Forms shortcode that gets dynamically replaced with the URL for easy access. The Merge Tag format is slightly different than the shortcode, as it uses curly braces instead of square brackets.
Attributes
There are no attributes for the notification Merge Tag. The file extension is retrieved from the form settings.
Because the notification is connected to a form, we already know what form ID to use for the URL. Therefore, we don’t need any other attributes.
Full example
{gravityexport_download_url}
Additional information
The names of the shortcode and Merge Tag have changed. The prior names work and will continue to work.
- The
[gravityexport_download_url]shortcode was previously named[gfexcel_download_url]. - The
{gravityexport_download_url}Merge Tag was previously named{gfexcel_download_url}.