Shortcode / Shorttag

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. For these cases we've added a shortcode. This shortcode works for both wordpress as notifications.

Wordpress

You can render the url for a form on the front-end by using the gfexcel_download_url shortcode.

Attributes

  • form - (required) the id of the form to get the download url from
  • type - The file type, either xlsx or csv. No type defaults to the predefined setting.

Full example

[gfexcel_download_url form=1 type=csv]

Notifications

A notification is send when a user fills out your form. This notification can contain the download url for easy access. The shortcode for notifications is only slightly different, as it uses braces instead of brackets.

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.

Attributes
There are not attributes for the notification shortcode. The file extension is retrieved from the form settings.

Full example

{gfexcel_download_url}