<?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: Add datepicker or datepicker classes to a list field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-datepicker-or-datepicker-classes-to-a-list-field</link>
		<description>Gravity Support Forums Topic: Add datepicker or datepicker classes to a list field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:26:35 +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/add-datepicker-or-datepicker-classes-to-a-list-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Add datepicker or datepicker classes to a list field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-datepicker-or-datepicker-classes-to-a-list-field#post-183083</link>
			<pubDate>Sun, 24 Mar 2013 15:22:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">183083@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This functionality is not included in Gravity Forms at this time and we can't support modifications to the core files.  Please be sure to keep track of your edits so they are maintained after updating Gravity Forms.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ccernoch on "Add datepicker or datepicker classes to a list field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-datepicker-or-datepicker-classes-to-a-list-field#post-180143</link>
			<pubDate>Thu, 21 Mar 2013 21:59:21 +0000</pubDate>
			<dc:creator>ccernoch</dc:creator>
			<guid isPermaLink="false">180143@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Collectiv,&#60;/p&#62;
&#60;p&#62;It's been a while back since I did this, but what I ended up doing was adding a script like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function($) {
	$(&#38;#39;.gfield_list_51_cell1 input&#38;#39;).addClass(&#38;#39;datepicker mdy&#38;#39;);

	$.aop.after( {target: window, method: &#38;#39;gformAddListItem&#38;#39;}, function(result) {
				//Destroy the previous datepicker classes that were mucking this up
				$(&#38;#39;.datepicker&#38;#39;).removeClass(&#38;#39;hasDatepicker&#38;#39;);
				$(&#38;#39;.datepicker&#38;#39;).datepicker(&#38;#39;destroy&#38;#39;);

				//Call the datepicker function to re-add date pickers
				gformInitDatepicker();

               return result;
         } );
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That bit of code relies on aop.min.js, which you can find here: &#60;a href=&#34;https://code.google.com/p/jquery-aop/source/browse/bin/aop.min.js?r=d1052368b0769afe20f6b09bdc371acf6f2246a6&#34; rel=&#34;nofollow&#34;&#62;https://code.google.com/p/jquery-aop/source/browse/bin/aop.min.js?r=d1052368b0769afe20f6b09bdc371acf6f2246a6&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And I edited the gravityforms.js file at line 563 -- this is an old version now, but it is inside the gformAddListItem function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;var new_id;
	var randomNum;
	clone.find(&#38;quot;.datepicker&#38;quot;).each(
	 function() {
	 	randomNum = Math.floor(Math.random()*11);
	   	new_id = new Date().getTime() + randomNum;
	   	jQuery(this).attr(&#38;quot;id&#38;quot;, new_id);
		}
	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If this doesn't work for you it might be out of date, but let me know and I'll try to help! I know it took me some time to get it working so hopefully this will help you out.  You'll have to be careful when updating your GF version to put the edits back in.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Collectiv on "Add datepicker or datepicker classes to a list field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-datepicker-or-datepicker-classes-to-a-list-field#post-179779</link>
			<pubDate>Thu, 21 Mar 2013 15:05:26 +0000</pubDate>
			<dc:creator>Collectiv</dc:creator>
			<guid isPermaLink="false">179779@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Same question here?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_column_input_6_3_4&#38;#39;,&#38;#39;gform6_set_column_date_picker&#38;#39;);
function gform6_set_column_date_picker(){
	return array(&#38;quot;type&#38;quot; =&#38;gt; &#38;quot;date&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>ccernoch on "Add datepicker or datepicker classes to a list field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-datepicker-or-datepicker-classes-to-a-list-field#post-60619</link>
			<pubDate>Tue, 29 May 2012 10:31:07 +0000</pubDate>
			<dc:creator>ccernoch</dc:creator>
			<guid isPermaLink="false">60619@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a list field that I would like to include dates in. I was hoping there is a way though using some of the available filters to add the necessary classes to get a datepicker to show up, but I can't figure out how to target my specific field using gform_field_css_class and recreating the input using gform_field_input for a list type seems daunting. Is there a good way to go about this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
