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.

Creating a tell-a-friend form for every single post

  1. travishines
    Member

    A few threads came back matching "tell-a-friend", but nothing really touched on creating a form that can be used to share individual posts via email with a friend.

    It seems this is possible with Gravity, but I'm not quite sure how -- just getting started with the plugin.

    So here's what I'd like to do, and could use some help setting up. I imagine the form including:

    • Sender's name field
    • Sender's e-mail field
    • Recipient's name field
    • Recipient's e-mail field
    • Optional message from sender to recipient to be included in the e-mail body
    • Hidden field with pre-written copy to be included in the e-mail body
    • Custom formatted html styling for the e-mail's body
    • Hidden field for post title to be used in the e-mail subject and body

    Here's the workflow I picture: I like a post on a site and I want to share it with a friend. I see a "tell-a-friend" form below the post and I fill it in. I type my name, my e-mail address, my friend's name, my friend's e-mail address, and a message, "this is hilarious...enjoy!". I hit the "send" button and a message fades in over the form, "This post has been sent to Mike (my friend). Thanks for sharing!".

    In my friend's inbox is an e-mail from my address with the subject, "Travis wanted to share "Funny freaking post" with you at FunnySite. He opens it and finds a beautiful html email that greets him with, "Hey Mike, Travis liked a post called "Funny freaking post" on FunnySite and wanted to share it with you:

    http://funnysite.com/funny-freaking-post

    We, and Travis, think you'll enjoy it!

    --

    Hope I gave enough details without putting everyone to sleep :)

    FIngers crossed this is possible with Gravity forms, and hopefully it's relatively straight forward. Thanks in advance, GF crew.

    Posted 14 years ago on Friday August 13, 2010 | Permalink
  2. This is possible with Gravity Forms.

    • Sender's name field
      Single Line Text Field
    • Sender's e-mail field
      Email Field
    • Recipient's name field
      Name Field
    • Recipient's e-mail field
      Email Field
    • Optional message from sender to recipient to be included in the e-mail body
      Paragraph Text Field
    • Hidden field with pre-written copy to be included in the e-mail body
      This does not need to be included as a field. After saving your new form, you'll be able to modify the notifications. This would go in the Autoresponder message section.
    • Custom formatted html styling for the e-mail's body
      Same deal as above.
    • Hidden field for post title to be used in the e-mail subject and body
      Hidden Field has a built in option to autopopulate the default value with the Post/Page title (on the advanced tab).

    Hop in there and start using it. You'll find that Gravity Forms is refreshingly intuitive. ;)

    Posted 14 years ago on Friday August 13, 2010 | Permalink
  3. travishines
    Member

    Worked like a charm! Thanks, David.

    Posted 14 years ago on Friday August 13, 2010 | Permalink

This topic has been resolved and has been closed to new replies.