<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: pass custom field from a post into a form that post links to</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pass-custom-field-from-a-post-into-a-form-that-post-links-to</link>
		<description>Gravity Support Forums Topic: pass custom field from a post into a form that post links to</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 09:33:08 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/pass-custom-field-from-a-post-into-a-form-that-post-links-to" rel="self" type="application/rss+xml" />

		<item>
			<title>stacybirdy on "pass custom field from a post into a form that post links to"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-custom-field-from-a-post-into-a-form-that-post-links-to#post-14440</link>
			<pubDate>Tue, 14 Dec 2010 21:05:36 +0000</pubDate>
			<dc:creator>stacybirdy</dc:creator>
			<guid isPermaLink="false">14440@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;THANK YOU!&#60;/p&#62;
&#60;p&#62;i ended up tweaking that just a tad, described below for anyone else who might have a use for it:&#60;/p&#62;
&#60;p&#62;* made a form with a single line text field 'Subject'.... I didn't want this to be hidden I wanted to remind the user the topic of the message and just... idk I just wanted it shown.&#60;br /&#62;
* set it to auto populate, parameter name 'subject'&#60;br /&#62;
* edited the notifications so that the subject of the admins email populated with the value in the Subject field of my form... which will have populated with the value assigned through the link that brought the user TO the form (phew!)&#60;br /&#62;
* went back into my post and linked to it like this &#60;code&#62;You can &#38;lt;a href=&#38;quot;/contact?subject=request a media kit&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;request a media kit&#38;lt;/a&#38;gt; today and blah blah blah&#60;/code&#62;&#60;br /&#62;
* later in the post w was able to do the same thing by switching up what came after the &#34;=&#34;... worked perfectly.&#60;/p&#62;
&#60;p&#62;thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "pass custom field from a post into a form that post links to"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-custom-field-from-a-post-into-a-form-that-post-links-to#post-14327</link>
			<pubDate>Mon, 13 Dec 2010 17:15:09 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">14327@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you want to pre-populate values in a form based on values from another page, you would have to pass those values in the query string when you link to the page containing the form.&#60;/p&#62;
&#60;p&#62;In order to do this you would have to setup your form with a hidden field and set it up so that it can be populated dynamically via the query string.&#60;/p&#62;
&#60;p&#62;- Edit your form&#60;br /&#62;
- Add Hidden Field&#60;br /&#62;
- Edit Hidden Field&#60;br /&#62;
- Give Hidden Field a field label value of &#34;Subject&#34;&#60;br /&#62;
- Select Advanced Tab&#60;br /&#62;
- Check the &#34;Allow field to be populated dynamically&#34; checkbox&#60;br /&#62;
- In the parameter name input that appears give it a parameter name of &#34;subject&#34;&#60;br /&#62;
- Save your form&#60;/p&#62;
&#60;p&#62;Now you can pass data to this hidden field by passing the subject to it in the query string.&#60;/p&#62;
&#60;p&#62;Ex. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://domain.com/myform?subject=MySubject&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/myform?subject=MySubject&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So you would have to change your links to this form so that the subject is passed to it via the query string.  You would edit your theme and change your link so it is:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;/contact?subject=#CUSTOMFIELDVALUE#&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;Click here&#38;lt;/a&#38;gt; to request a media kit.&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;You would have to use PHP to output the custom field value as the subject.&#60;/p&#62;
&#60;p&#62;The form page does not have access to the custom fields of the referring page so you would have to pass the value to it.&#60;/p&#62;
&#60;p&#62;Then in your notification you can use the Subject field as the value for the Subject.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stacybirdy on "pass custom field from a post into a form that post links to"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-custom-field-from-a-post-into-a-form-that-post-links-to#post-14322</link>
			<pubDate>Mon, 13 Dec 2010 17:01:58 +0000</pubDate>
			<dc:creator>stacybirdy</dc:creator>
			<guid isPermaLink="false">14322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay. I have a contact page on my site with a gravity form on it (id=1)... and I want to link various pages on my site to THAT contact page, and have it fill in one of the form fields according to a custom field value located on the page that linked to it.&#60;/p&#62;
&#60;p&#62;EXAMPLES&#60;br /&#62;
*Advertising Page*&#60;br /&#62;
example content: &#60;code&#62;&#38;lt;a href=&#38;quot;/contact&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;Click here&#38;lt;/a&#38;gt; to request a media kit.&#60;/code&#62;&#60;br /&#62;
custom field: subject&#60;br /&#62;
custom field value: Media Kit Request&#60;br /&#62;
--- now those values magically populate the subject field of form id=1 located on the contact page ---&#60;br /&#62;
contact page forms subject line: Media Kit Request&#60;/p&#62;
&#60;p&#62;*Store Page*&#60;br /&#62;
example content: &#60;code&#62;Got an idea for an awesome tshirt? &#38;lt;a href=&#38;quot;/contact&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;Let us know!&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;br /&#62;
custom field: subject&#60;br /&#62;
custom field value: T-Shirt Suggestion&#60;br /&#62;
--- now those values magically populate the subject field of form id=1 located on the contact page ---&#60;br /&#62;
contact page forms subject line: T-Shirt Suggestion&#60;/p&#62;
&#60;p&#62;NOTES&#60;br /&#62;
• I have a custom field called 'subject'&#60;br /&#62;
• I have a field being allowed to populate dynamically in my form with 'subject' as the parameter name&#60;br /&#62;
• I realize my final links will need more than just &#60;code&#62;&#38;lt;a href=&#38;quot;/contact&#38;quot;&#38;gt;&#60;/code&#62; ...just using it as an example to show its going to that page&#60;br /&#62;
• I understand how to make the 'subject' field from my form populate as the subject of a notification email&#60;/p&#62;
&#60;p&#62;. . . . but how do I populate that subject field in my form based on a value from the referring page?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
