<?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: Need help getting form to work in overlay</title>
		<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay</link>
		<description>Gravity Support Forums Topic: Need help getting form to work in overlay</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 22:09:55 +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/need-help-getting-form-to-work-in-overlay" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59763</link>
			<pubDate>Mon, 21 May 2012 20:12:40 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59763@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome, Dave is the man. Glad you got it working!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Trisha on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59757</link>
			<pubDate>Mon, 21 May 2012 19:35:10 +0000</pubDate>
			<dc:creator>Trisha</dc:creator>
			<guid isPermaLink="false">59757@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Bingo!&#60;/p&#62;
&#60;p&#62;I couldn't get the cbox_complete method to work, most likely because of my lack of coding knowledge, but this was totally helpful enough that by looking at examples elsewhere on using the callback (onComplete) method I could get it to work.....woo hoo!&#60;/p&#62;
&#60;p&#62;THANK YOU!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59752</link>
			<pubDate>Mon, 21 May 2012 18:39:46 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">59752@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Trisha,&#60;/p&#62;
&#60;p&#62;It looks like your lightbox is grabbing the HTML of whatever element you specify (in this case the &#34;lightboxpopup&#34; element) and then adding it into the lightbox content area. The issue is, the events that were bound to the original form HTML are no longer bound to this copied form HTML. You need to reinitilized your date fields after the popup has been launched.&#60;/p&#62;
&#60;p&#62;What you'll want to do is bind your datepicker init scripts to colorboxes onComplete method or you can use event hooks (more info on their page):&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.jacklmoore.com/colorbox&#34; rel=&#34;nofollow&#34;&#62;http://www.jacklmoore.com/colorbox&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is the example they have on their documentation modified to indicate where your code should go:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
// Example of using an event listener and public method to build a primitive slideshow:
$(document).bind(&#38;#39;cbox_complete&#38;#39;, function(){
   // your custom date picker code here
});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Trisha on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59656</link>
			<pubDate>Mon, 21 May 2012 13:08:54 +0000</pubDate>
			<dc:creator>Trisha</dc:creator>
			<guid isPermaLink="false">59656@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Rob,&#60;/p&#62;
&#60;p&#62;The datepicker code is definitely in the file called jquery-ui-1.7.2.custom.min.js, and the snippet of code that adds the calendar icon and ties the two dates together is in the RFQCal(x).js, with the x being the ID number of the form that uses it.&#60;/p&#62;
&#60;p&#62;I didn't realize that the conditional logic for Gravity Forms was being called twice - I did add it manually to my header and I guess it's also being added by the plugin so I'll remove the first instance.&#60;/p&#62;
&#60;p&#62;The datepicker works as expected on the page, just not in the overlay.  And I know it's finding at least the custom code for the icon since they do show - it just won't accept input in the boxes for the dates, and it won't show the calendar when clicked.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59215</link>
			<pubDate>Wed, 16 May 2012 20:06:12 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59215@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well, I viewed the source of your page. I def didn't see the date picker js anywhere. However, I did see two loads of jquery (both 1.7.1) and I see that there are two different Gravity Forms conditional logic JS files loading: &#60;a href=&#34;http://www.evernote.com/shard/s212/sh/ddb80bb7-3506-440a-a7d7-2b8e76614cf9/cb54a6e3dae792a1e56cd9289f389f4f&#34; rel=&#34;nofollow&#34;&#62;Screenshot&#60;/a&#62; Are you manually placing any script files?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Trisha on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59213</link>
			<pubDate>Wed, 16 May 2012 19:44:49 +0000</pubDate>
			<dc:creator>Trisha</dc:creator>
			<guid isPermaLink="false">59213@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hmmm......so even though I already  have the appropriate scripts enqueued in the header.php file, they need to be enqueued a second time?  &#60;/p&#62;
&#60;p&#62;I tried to post here (both with and without the backticks) the relevant lines from my header.php file to show that I am enqueuing the scripts and calling the appropriate .js files for the datepicker and it's customizations, but I get an error message from FireHost about blocking my post.&#60;/p&#62;
&#60;p&#62;I have the script calls and enqueuing just above my wp_head(); line......where else should I be enqueueng the gravforms scripts to make this work?   The part on the page that calls the second gravity form for displaying in the overlay is inline - as the fancybox example did it - I could not make it work by calling any type of external file on which the form was called, inline HTML/PHP was the only way I can get the overlay to display the form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59198</link>
			<pubDate>Wed, 16 May 2012 16:49:16 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59198@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ah ha! It's because it's not including the datepicker js. Sounds like you just need to enqueue your scripts/styles for the form because of how you are placing it. See info here, all the way at the bottom:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Trisha on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59197</link>
			<pubDate>Wed, 16 May 2012 16:39:52 +0000</pubDate>
			<dc:creator>Trisha</dc:creator>
			<guid isPermaLink="false">59197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry I had forgotten to include that.....&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.bestallinclusive.com/azul/test/&#34; rel=&#34;nofollow&#34;&#62;http://www.bestallinclusive.com/azul/test/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Click on the hideous green button that says &#34;click for a free quote&#34; - not finished with any of the styling until I can get it working.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59185</link>
			<pubDate>Wed, 16 May 2012 15:46:59 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">59185@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How do I see the lightbox version of the form with the non-working calendar?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Trisha on "Need help getting form to work in overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-getting-form-to-work-in-overlay#post-59181</link>
			<pubDate>Wed, 16 May 2012 15:27:57 +0000</pubDate>
			<dc:creator>Trisha</dc:creator>
			<guid isPermaLink="false">59181@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Rob - here's the live site with the form and calendar working on the left sidebar.......&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.bestallinclusive.com/azul/azul-beach/&#34; rel=&#34;nofollow&#34;&#62;http://www.bestallinclusive.com/azul/azul-beach/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Having two different forms, while not ideal, would still be acceptable as long as the calendar works....it's just the stock out-of-the-box jQuery datepicker with a small amount of custom code to tie the two dates together, like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(function() {
	$(&#38;quot;#input_6_5&#38;quot;).datepicker(
		{
			&#38;quot;showOn&#38;quot;: &#38;quot;both&#38;quot;,
			&#38;quot;numberOfMonths&#38;quot;: 2,
			&#38;quot;buttonImage&#38;quot;: &#38;quot;http://www.bestallinclusive.com/img/calendar.gif&#38;quot;,
			&#38;quot;buttonImageOnly&#38;quot;: true,
			&#38;quot;minDate&#38;quot;: 0,
			&#38;quot;onSelect&#38;quot;: function(dateText, inst) {
				$(&#38;#39;#input_6_6&#38;#39;).datepicker(&#38;#39;option&#38;#39;, &#38;#39;minDate&#38;#39; ,new Date(dateText));
			}
		}
	);

	$(&#38;quot;#input_6_6&#38;quot;).datepicker(
		{
			&#38;quot;showOn&#38;quot;: &#38;quot;both&#38;quot;,
			&#38;quot;numberOfMonths&#38;quot;: 2,
  			&#38;quot;buttonImage&#38;quot;: &#38;quot;http://www.bestallinclusive.com/img/calendar.gif&#38;quot;,
			&#38;quot;buttonImageOnly&#38;quot;: true,
			&#38;quot;minDate&#38;quot;: +1
		}
	);
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have to recreate this for every form because the input for the dates has a different ID on each form, and while I've tried to make this work using class instead of ID, so that I can use the same code for any form and not have to call multiple scripts in my header,php, but it just won't work if I don't use ID.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
