<?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: How to use: Allow field to be populated dynamically</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically</link>
		<description>Gravity Support Forums Topic: How to use: Allow field to be populated dynamically</description>
		<language>en-US</language>
		<pubDate>Fri, 03 Apr 2026 22:59:33 +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/how-to-use-allow-field-to-be-populated-dynamically" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-41720</link>
			<pubDate>Mon, 21 Nov 2011 11:14:13 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">41720@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#34;val&#34; would be the value you want to set it to.  Your example uses a shortcode to dynamically populate those fields. What you are trying to do you would likely not be using the shortcode method to populate those fields because you don't know what the values are.  You use the shortcode method to dynamically populate the field values when it's something post or page specific.&#60;/p&#62;
&#60;p&#62;If you want to populate the name field using the logged in user's information you would need to use the PHP method to dynamically populate the field.  You would use the parameter names that are setup, however you'd have to write PHP to populate them with the name of the logged in user.&#60;/p&#62;
&#60;p&#62;Here is a tutorial on how to use hooks to dynamically populate a field:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Hooks&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population#Hooks&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kennethjaysone on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-41701</link>
			<pubDate>Mon, 21 Nov 2011 00:34:42 +0000</pubDate>
			<dc:creator>kennethjaysone</dc:creator>
			<guid isPermaLink="false">41701@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, ok, so i have a form that only allows logged in users to submit data. Now i want to populate the name (first and last). So in the form editor:&#60;/p&#62;
&#60;p&#62;1) Under the advanced tab, i click on &#34;Allow field to be populated dynamically&#34;&#60;/p&#62;
&#60;p&#62;Under field parameter name, there is 2 inputs&#60;/p&#62;
&#60;p&#62;first:&#60;/p&#62;
&#60;p&#62;last:&#60;/p&#62;
&#60;p&#62;So i have to give a name e.g. first_name and last_name (these would be the names of the parameters)&#60;/p&#62;
&#60;p&#62;After doing this (now i'm publishing my form on a page), i'll have to put in this shortcode:&#60;/p&#62;
&#60;p&#62;[gravityform id=&#34;2&#34; name=&#34;Make a purchase!&#34; field_values='first_name=val&#38;amp;last_name2=val']&#60;/p&#62;
&#60;p&#62;Is that correct? first_name=val? and last_name=val?&#60;/p&#62;
&#60;p&#62;should val be something else or this is sufficient?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-28865</link>
			<pubDate>Thu, 30 Jun 2011 10:24:47 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28865@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@davidcmadrid The default value is not the same thing as CF7's &#34;watermark&#34;.  A default value is a default value, it is a valid value.  What you are referring to is a placeholder.  We have been holding off on implementing placeholder functionality until the HTML5 placeholder attribute is more widely supported by browsers because we did not have to implement it using javascript, however it is a feature we will probably end up implementing anyway as HTML5 support is lagging.  &#60;/p&#62;
&#60;p&#62;It can be done now, but as a customization using jQuery.  Here is a tutorial that discusses how to do this: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/clearing-default-form-field-values-with-jquery/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>davidcmadrid on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-28838</link>
			<pubDate>Wed, 29 Jun 2011 21:57:18 +0000</pubDate>
			<dc:creator>davidcmadrid</dc:creator>
			<guid isPermaLink="false">28838@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;WE just moved from contact form 7 to this plugin. In CF7 we used to populate a form field with what it called a &#34;watermark&#34; , you call this &#34;default&#34; value and we had to go to &#34; custom field &#34; to do so . The one problem from a users perspective is that when i click the field for example to enter my name , its that the autopopulated content does not dissapear. CF7 calls this watermark. Is there a way to have the auto content in the field dissapear upon mouseclick like CF7 ? Otherwise great plugin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-25485</link>
			<pubDate>Fri, 13 May 2011 12:24:20 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">25485@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, it's possible to get some user information and set them as default values for fields.  There is a drop down above the Default Value when editing a field that lets you insert merge codes, some of the merge codes include User related information such as email, etc.&#60;/p&#62;
&#60;p&#62;As for automatically assigning a category based on who is logged in that would have to be done via PHP using available API hooks, it's more advanced.  You'd have to use hooks which are documented in the developer docs of the Documentation to do this using PHP.  If you aren't familiar with custom PHP and using WordPress hooks you may need to look into having a WordPress developer assist you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Coach on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-25474</link>
			<pubDate>Fri, 13 May 2011 10:22:30 +0000</pubDate>
			<dc:creator>Coach</dc:creator>
			<guid isPermaLink="false">25474@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, if a user has to be logged in to access a form, is it possible for form fields (specifically POST form fields) to be automatically populated used the user's registration data? &#60;/p&#62;
&#60;p&#62;E.g. I can get the user's email address for an email field through the default value setting, but what I need to do is automatically assign the category for a post based on who is logged in - is this possible?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-17981</link>
			<pubDate>Tue, 08 Feb 2011 17:38:23 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">17981@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure what you mean by do it in the interface? Dynamically populating the value of a field is done either via the query string or via custom PHP.  You have to write the code that dynamically populates the field.  I'm not sure how you could populate it without either passing the value in the query string or by writing code? I'm not quite sure I understand what you are trying to accomplish.&#60;/p&#62;
&#60;p&#62;If you want to populate form fields dynamically you need to tell it what the values should be. I don't see how that can be automated. You have to tell it the values, that is how things are populated dynamically by writing code to tell it the values automatically.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jcrsantiago on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-17975</link>
			<pubDate>Tue, 08 Feb 2011 16:21:27 +0000</pubDate>
			<dc:creator>jcrsantiago</dc:creator>
			<guid isPermaLink="false">17975@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So there is no way to do that in the interface? I can use php, but mainly I insert code not create any.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-17933</link>
			<pubDate>Tue, 08 Feb 2011 13:16:11 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">17933@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The parameter name is whatever you want it to be.  The parameter name is what you use to populate the field dynamically via the query string or via PHP.  So for example.&#60;/p&#62;
&#60;p&#62;- I create a form&#60;br /&#62;
- I add an Email field to the form&#60;br /&#62;
- I edit the Email field and select the Advanced tab&#60;br /&#62;
- I give the Email field a parameter name of email&#60;br /&#62;
- I save the form&#60;/p&#62;
&#60;p&#62;Now when I load that form, if I pass the email value to it via the query string (ex. &#60;a href=&#34;http://mydomain.com/mypage?email=email@email.com)&#34; rel=&#34;nofollow&#34;&#62;http://mydomain.com/mypage?email=email@email.com)&#60;/a&#62; it will pre-populate that field.  So using the query string method you would pass data to the form as part of the link to the page containing the form.&#60;/p&#62;
&#60;p&#62;You can also pre-populate it using PHP, again using the parameter name, but that is more advanced.  What is your skill level with PHP and WordPress development?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fraudclosure on "How to use: Allow field to be populated dynamically"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-use-allow-field-to-be-populated-dynamically#post-17894</link>
			<pubDate>Tue, 08 Feb 2011 06:05:41 +0000</pubDate>
			<dc:creator>Fraudclosure</dc:creator>
			<guid isPermaLink="false">17894@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see an option for &#34;Allow field to be populated dynamically&#34; i have  a page with an address, I then want to confirm that is the mailing address on the next page. So I want to dynamically fill the forms. &#60;/p&#62;
&#60;p&#62;So when I click &#34;Allow field to be populated dynamically&#34; I see several fields but I dont know how to fill them. What do I put in the Parameter Name? How do I know what it is?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
