Title: Lead Source
Last modified: September 21, 2017

---

# Lead Source

 *  Resolved [Garet H.](https://wordpress.org/support/users/pagetopixel/)
 * (@pagetopixel)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/lead-source-2/)
 * Hello,
 * We are using a few different forms on our site which are all adding contacts 
   and seem to be working great. However the collected forms have names like #gform_5
   under collected forms. Is there a way to set the form title to be the Lead Source
   for each contact so its easier to tell which form the contact came from?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Big Sea](https://wordpress.org/support/users/big-sea/)
 * (@big-sea)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/lead-source-2/#post-9539411)
 * Hey pagetopixel,
 * Sorry about this, I could’ve sworn I answered you earlier this week… the forms
   send, by default, the form name and current page, and you are given an opportunity
   to override it.
 * This is part of the “HSContext” which sends the cookie, and some context for 
   HubSpot to determine if the user is new or not, and where they’re coming from.
 * You have two “apply_filter” functions accessible to you at that point.
 *     ```
       'pageUrl'   => apply_filters( 'gf_hubspot_context_url', site_url() ),
       'pageName'  => apply_filters( 'gf_hubspot_context_name', rgars($form, 'title') ),
       ```
   
 * Can you clarify where the “collected forms” are that you’re referring to? I will
   look into manipulation based on the “Lead Source” but I wasn’t aware that it 
   was something I could manipulate during form submissions.
 *  Thread Starter [Garet H.](https://wordpress.org/support/users/pagetopixel/)
 * (@pagetopixel)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/lead-source-2/#post-9540154)
 * No problem, thanks for your reply.
 * The collected forms are under the Marketing section in Hubspot, its in the main
   navigation to the left of the Settings tab. Is there an email I can send a screenshot?
 * To add the filters do I simply need to paste those 2 lines into functions.php?
 * It is possible to set the Lead Source from Gravity forms using Zapier but I would
   prefer to use your plugin.
 * Thanks again.
 *  Thread Starter [Garet H.](https://wordpress.org/support/users/pagetopixel/)
 * (@pagetopixel)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/lead-source-2/#post-9540210)
 * My bad, I see that you can change the form names. So the only question left is
   how to set the Form name as the lead source for the contact.
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Lead Source’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravityforms-hubspot_26e0df.svg)
 * [HubSpot for Gravity Forms](https://wordpress.org/plugins/gravityforms-hubspot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravityforms-hubspot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravityforms-hubspot/)
 * [Active Topics](https://wordpress.org/support/plugin/gravityforms-hubspot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravityforms-hubspot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravityforms-hubspot/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Garet H.](https://wordpress.org/support/users/pagetopixel/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/lead-source-2/#post-9540210)
 * Status: resolved