<?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: Automatically Populate Time</title>
		<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time</link>
		<description>Gravity Support Forums Topic: Automatically Populate Time</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 02:59:51 +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/automatically-populate-time" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32743</link>
			<pubDate>Wed, 17 Aug 2011 13:11:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad it worked out for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32733</link>
			<pubDate>Wed, 17 Aug 2011 11:29:32 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">32733@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Worked perfectly!&#60;br /&#62;
Thanks for the help, and the great instructions!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32708</link>
			<pubDate>Wed, 17 Aug 2011 00:07:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32708@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK.  You're probably going to want to use the &#60;strong&#62;gform_field_value_&#60;/strong&#62; filter to pre-populate a field in your form.  &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Add a single line text field to your form, maybe call the field &#34;Start Time&#34; and check the box to &#34;Allow field to be populated dynamically&#34;.  That's on the advanced tab for your field.  Once that's checked, you will be shown a text box called &#34;Parameter name&#34;.  In there, enter the name of the parameter you're going to be populating with your filter.  Something simple like &#34;start&#34; would be fine.&#60;/p&#62;
&#60;p&#62;Then, in your functions.php (in your current theme) use the filter to populate the parameter &#34;start&#34; with the value of the current time.  That will place the current time in your form before it's displayed.&#60;/p&#62;
&#60;p&#62;Your filter will look something like this in functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_field_value_start&#38;quot;, &#38;quot;populate_start_time&#38;quot;);
function populate_start_time($value){
   return date(DATE_RFC822);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;em&#62;Note the addition of &#34;start&#34; in the name of the filter: gform_field_value_&#60;strong&#62;start&#60;/strong&#62;.  That needs to match what you used as the parameter name when you said &#34;Allow this field to be populated dynamically&#34;.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;You can use the &#60;a href=&#34;http://php.net/manual/en/function.date.php&#34; rel=&#34;nofollow&#34;&#62;PHP date function&#60;/a&#62; to craft a date/time format that will work for you.  There is also a Gravity Forms function called &#60;strong&#62;&#60;/strong&#62;format_date in common.php that you can use to help get the date displayed exactly the same way as the date the entry was created (for comparison.)  I think you could probably also extend this to include some math to calculate the number of minutes, if that's required for your application.&#60;/p&#62;
&#60;p&#62;If you need additional help, please let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32707</link>
			<pubDate>Tue, 16 Aug 2011 23:25:42 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">32707@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, exactly!  :D
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32706</link>
			<pubDate>Tue, 16 Aug 2011 23:21:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32706@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So, it sounds like you want the time populated when the page is loaded.  It should probably be visible so the person loading the form can see that it's accurate (i.e. they are using a page that was loaded at a prior time inadvertently.)&#60;/p&#62;
&#60;p&#62;If you can accept the time the form was submitted as the call conclusion, I think it will be pretty easy.  Just confirm if that's what you want to do and I will come up with a suggestion.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32704</link>
			<pubDate>Tue, 16 Aug 2011 23:16:36 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">32704@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We're using it for a call logging system for a client, so they have a place where they would enter what time the call started (which would be the automatic time) and then when the call ended (which would be manually entered, I suppose).&#60;/p&#62;
&#60;p&#62;Does that help answer the question?&#60;/p&#62;
&#60;p&#62;I honestly hadn't thought about the form being logged automatically with a time stamp. :)  That could be the &#34;call conclusion&#34; time for sure.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32703</link>
			<pubDate>Tue, 16 Aug 2011 23:12:14 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32703@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The entry date and time are already captured and visible with the entry.  Are you looking for more than that?&#60;/p&#62;
&#60;p&#62;a) When the page with the form loads, do you want the current time loaded there?  &#60;/p&#62;
&#60;p&#62;b) Should it be visible to visitors or admin only?  &#60;/p&#62;
&#60;p&#62;c) Should it be editable?  &#60;/p&#62;
&#60;p&#62;d) Should it be the time the form is submitted rather than the time the page was loaded?&#60;/p&#62;
&#60;p&#62;It's certainly possible but how you want to use it determines how to go about getting the time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Automatically Populate Time"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-populate-time#post-32694</link>
			<pubDate>Tue, 16 Aug 2011 17:17:30 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">32694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to populate a &#34;time&#34; field with what time it currently is?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
