PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Need help with notifications

  1. I am using my own stuff in the e-mail notifications form. All is fine except the url to the uploaded image file is very long. Is there a kind of shortcut or merge command I can use to shorten that url like as, if I use {all_fields}?

    Posted 12 years ago on Wednesday November 21, 2012 | Permalink
  2. David Peralty

    There isn't a built-in URL shortening system built in. Can you tell me more about what you mean and what you are seeing?

    Posted 12 years ago on Wednesday November 21, 2012 | Permalink
  3. Hi David,
    I get this on screen as confirmation and in a notification e-mail:

    http://www.posterdruck.biz/wp-content/uploads/gravity_forms/4-0cbb19ce75b966cb7e69a3add161ff65/2012/11/DSC00931.jpg

    It would be nice, if I can capsule this in a link were name of the file is displayed - html-link

    Posted 12 years ago on Wednesday November 21, 2012 | Permalink
  4. David Peralty

    In your notifications, can you do the following?

    <a href="{img merge tag}">Image Uploaded</a>
    Posted 12 years ago on Wednesday November 21, 2012 | Permalink
  5. Hi David, thanks. I put it into the admin notification form in the html view. What I get in my e-mail is now "Image Upload" as link.
    How if there will be the original filename? Is there a shortcode for only filename?

    Posted 12 years ago on Friday November 23, 2012 | Permalink
  6. David Peralty

    There are, scroll down to the bottom of this page and read about merge tags relating to getting specific information:

    http://www.gravityhelp.com/documentation/page/Merge_Tags

    Posted 12 years ago on Friday November 23, 2012 | Permalink
  7. Hi David, I just found few minutes for testing this, but it doesn't seem to work. I created a new form only with a uploading field. That has the label "Datei". When I upload a file to my server, I receive a basic notification from merge_tag {all_fields}. The E-Mail looks like this:

    <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
         <tr bgcolor="#EAF2FA">
              <td colspan="2">
                    <font style="font-family: sans-serif; font-size:12px;"><strong>Datei</strong></font>
               </td>
          </tr>
          <tr bgcolor="#FFFFFF">
               <td width="20">&nbsp;</td>
               <td>
                    <font style="font-family: sans-serif; font-size:12px;"><a href='http://bildmanufaktur-wackernah.de/wp-content/uploads/gravity_forms/7-a68c67528abfb3690327bf5c8bff4a1a/2012/11/art-000381.jpg' target='_blank' title='Klicken zum Anschauen'>art-000381.jpg</a></font>
              </td>
         </tr>
    </table>

    ---

    I am not shure how to get this and which merge_tags I have to put in my notification?

    This doesn't seem to work:
    <a href='{Datei:1:url}' target='_blank' title='Klicken zum Anschauen'>{List:1:url}</a>

    and this too:
    {Datei:1:url}

    Which markup do I have to use?

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  8. David Peralty

    The :url call should work. What do you get currently when you do {Datei:1:url}? Is Datei the field and 1 the field ID number?

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  9. Yes, if I use {Datei:1:url} equal to {name_of_field:id:url} I get the whole path as before. I use the file upload field from advanced fields tab.

    I need to separate the original filename from the path as it is done if I use {all_fields} merge_tag.

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  10. This what I used latest:

    <a href='{Datei:1}' target='_blank' title='Klicken zum Anschauen'>{Datei:1:url}</a>

    I did all tests with form preview, but that should not be the case didn't it?

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  11. David Peralty

    So you want the following?

    <a href="URL to image" rel="nofollow">IMG NAME</a>
    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  12. Yes David, same as the basic table output from {all_fields}:

    <a href='http://bildmanufaktur-wackernah.de/wp-content/uploads/gravity_forms/7-a68c67528abfb3690327bf5c8bff4a1a/2012/11/art-000381.jpg' target='_blank' title='Klicken zum Anschauen'>art-000381.jpg</a>

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  13. Adrian, please see this code I wrote a while back.

    http://www.gravityhelp.com/forums/topic/extract-file-upload-name-in-email-notification#post-69404

    In short, I did not find a way to get the filename, so I created a shortcode to grab it. You can use the shortcode in your notification.

    Posted 11 years ago on Thursday November 29, 2012 | Permalink