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.

Inserting the contents of a page into a gravity form field

  1. Hi GF Forum!

    I am trying to build a custom "Email to a friend" function on our website. We have content on the page (residing within the the_content() tag) that we would like to insert into a hidden field on a gravity form. So the client would open the page where the content and form reside, insert their name and email address and who they want to email it to, and then have GF automatically insert the content from the content into the notification email.

    I am sure this can be done with some sort of hook, but cant figure it out myself

    Anyone out there ever try to do this before?
    Any assistance would be appreciated

    Posted 11 years ago on Friday February 1, 2013 | Permalink
  2. The user notification supports shortcodes, so you can use a shortcode to get the content and include that in the notification. I'm sure there is a plugin to get just the content, or you could create your own fairly easily and hook it to the WordPress function the_content();

    Posted 11 years ago on Monday February 4, 2013 | Permalink