<?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 Tag: javascript - Recent Topics</title>
		<link>https://legacy.forums.gravityhelp.com/tags/javascript</link>
		<description>Gravity Support Forums Tag: javascript - Recent Topics</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:03:52 +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/tags/javascript/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>smmcward on "Pre Render, Multi Page, Calculations, Javascript skilled developer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-multi-page-calculations-javascript-skilled-developer#post-373894</link>
			<pubDate>Wed, 10 Jul 2013 17:03:21 +0000</pubDate>
			<dc:creator>smmcward</dc:creator>
			<guid isPermaLink="false">373894@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello Developer's,&#60;/p&#62;
&#60;p&#62;I am also using Gravity Forms Product Add On as well to add additional costs/options to products on a Woocommerce site.&#60;/p&#62;
&#60;p&#62;I need on one page of a multi page form, 10 single line input text boxes with 2 radio buttons per line on the right as a choice as to what type of line it is... a repeating line or a changing line. The user fills in the text box if it is a repeating line and leaves blank if it is a changing line. Repeating lines radio buttons have a value of 0. Changing line radio buttons have a value. Here's where the javascript comes in to play:&#60;br /&#62;
No changing lines: $0.00&#60;br /&#62;
1 changing line: $3.50&#60;br /&#62;
2 changing lines: $5.50&#60;br /&#62;
3 changing lines: $7.25&#60;br /&#62;
4 changing lines: $8.75&#60;/p&#62;
&#60;p&#62;There wouldn't be more than 4 changing lines that the user would input out of the 10. I imagine you could &#34;count&#34; the total number changing lines selected and depending on that number, add the cost&#60;/p&#62;
&#60;p&#62;Now the exciting stuff... What the form above will be doing is acting as a template (per say). On the same page as this form would be a drop down with 1-10. If the user chooses, let's say 5 and clicks the &#34;next&#34; button, 5 exactly the same forms, just like the one we just created will be on the next page. This is where the Pre Render would come into play. Also, the value or cost from from the changing line radio buttons would show as well. So in this case, 5 times the number of total changing lines.&#60;/p&#62;
&#60;p&#62;If interested, I can go in to more detail via email/phone. Also, 8-9 similar types of option forms coming in the next week that I know I will need to job out as well. &#60;/p&#62;
&#60;p&#62;Name: Sean&#60;br /&#62;
Contact Email: &#60;a href=&#34;mailto:sean.mcward@seanmcward.com&#34;&#62;sean.mcward@seanmcward.com&#60;/a&#62;&#60;br /&#62;
Date needed: ASAP on this first form&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Twig Interactive on "Need to set document.domain for Ajax-enabled submissions"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-set-documentdomain-for-ajax-enabled-submissions#post-337141</link>
			<pubDate>Fri, 21 Jun 2013 16:44:55 +0000</pubDate>
			<dc:creator>Twig Interactive</dc:creator>
			<guid isPermaLink="false">337141@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am running a site (www.example.com) that uses iframes from a subdomain (test.example.com).&#60;/p&#62;
&#60;p&#62;In order to communicate between them (due to same-origin policy) I need to set the JavaScript variable &#60;code&#62;document.domain = &#38;#39;example.com&#38;#39;&#60;/code&#62; . This is all fine and works great.&#60;/p&#62;
&#60;p&#62;However, when Gravity Forms in introduced, the Ajax-enabled submissions fail (because presumably the Ajax code returned that gets loaded into the hidden GF iframe expects the standard &#60;a href=&#34;http://www.example.com&#34; rel=&#34;nofollow&#34;&#62;http://www.example.com&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;Sadly, browsers do NOT let you reset the document domain back to the original, once you have set it to the superdomain.&#60;/p&#62;
&#60;p&#62;Long story short: I need to be able to insert the &#60;code&#62;document.domain&#60;/code&#62; code into the HTML returned by the Ajax submission of a form. I don't see a JavaScript hook for such a thing. Is there a way to do this via a PHP hook?&#60;/p&#62;
&#60;p&#62;I know I can just turn Ajax off and it'll work, but that's not an elegant solution.&#60;/p&#62;
&#60;p&#62;Any advice would really be appreciated! Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jbro on "Placeholder text a different style than typed-in text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/placeholder-text-a-different-style-than-typed-in-text#post-329399</link>
			<pubDate>Mon, 17 Jun 2013 22:29:46 +0000</pubDate>
			<dc:creator>jbro</dc:creator>
			<guid isPermaLink="false">329399@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I'm using GF with the excellent clearit hack (here: &#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;. With the input:focus pseudoselector I've gotten typed-in entry text to be a different style than the default content (default content is italic and gray, typing is normal and black). &#60;/p&#62;
&#60;p&#62;The problem is, when you take focus away, the text you entered is grayed-out and the client doesn't like this. &#60;/p&#62;
&#60;p&#62;Is there any way to make text boxes that have been filled out be a different text style than default content? I'm open to re-doing the javascript implementation if necessary. &#60;/p&#62;
&#60;p&#62;Thanks in advance to anyone who can point me in the right direction! &#60;/p&#62;
&#60;p&#62;Oh here's the site (currently in pre-release): &#60;a href=&#34;http://asklegalbrains.com/&#34; rel=&#34;nofollow&#34;&#62;http://asklegalbrains.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
jb
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Noel Green on "Conditional Logic with Hundreds of Options"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-with-hundreds-of-options#post-201271</link>
			<pubDate>Mon, 08 Apr 2013 12:35:16 +0000</pubDate>
			<dc:creator>Noel Green</dc:creator>
			<guid isPermaLink="false">201271@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form which shows a different image / HTML block depending on what zip code is entered in a field.  If the zip code is none of over 500 variations it shows another image. Right now I'm setting up the conditional logic option to &#34;Hide&#34; that image if any of the 500+ zip codes are entered.  This is taking for ever to enter in and makes the form load more slowly.&#60;/p&#62;
&#60;p&#62;Is there an easier way?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>batterystudios on "Form datepicker - zIndex error using jquery.ui.datepicker.min.js?ver=1.9.2"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-datepicker-zindex-error-using-jqueryuidatepickerminjsver192#post-308849</link>
			<pubDate>Fri, 07 Jun 2013 19:56:22 +0000</pubDate>
			<dc:creator>batterystudios</dc:creator>
			<guid isPermaLink="false">308849@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When I use the datepicker on the frontend in my form, I receive the following error:&#60;br /&#62;
&#34;Uncaught TypeError: Object [object Object] has no method 'zIndex' &#34;&#60;br /&#62;
- /wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2&#60;/p&#62;
&#60;p&#62;As a workaround, I modified the core file form_display.php at line 1510 and commented out the following line :&#60;/p&#62;
&#60;p&#62;//wp_enqueue_script(&#34;gforms_datepicker&#34;, GFCommon::get_base_url() . &#34;/js/datepicker.js&#34;, array(&#34;jquery-ui-datepicker&#34;), GFCommon::$version, true);&#60;/p&#62;
&#60;p&#62;and replaced it with the following code to load GF's own verison of the datepicker script.&#60;/p&#62;
&#60;p&#62;wp_register_script('gforms_ui_datepicker', GFCommon::get_base_url() . '/js/jquery-ui/ui.datepicker.js', array('jquery'), GFCommon::$version );&#60;/p&#62;
&#60;p&#62;This fixed the problem, for now, but I do not want to leave the code hacked.  Can you suggest a better solution please?&#60;/p&#62;
&#60;p&#62;Here is a screencast of the problem for more info:  &#60;a href=&#34;http://screencast.com/t/KewvOldDPdmk&#34; rel=&#34;nofollow&#34;&#62;http://screencast.com/t/KewvOldDPdmk&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aum302 on "Using both &#039;message as well as redirect&#039; option after clicking &#039;Submit&#039; button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-both-message-as-well-as-redirect-option-after-clicking-submit-button#post-252244</link>
			<pubDate>Tue, 14 May 2013 04:48:25 +0000</pubDate>
			<dc:creator>aum302</dc:creator>
			<guid isPermaLink="false">252244@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Right now, there are two options to select from once a user clicks the 'submit' button -  message or page re-direct.&#60;/p&#62;
&#60;p&#62;Pls let me know if it's possible to get both these done. For example, after a user clicks the 'submit' button, first the person sees a message and after a preset delay of a few seconds, gets re-directed to a pre-specified page.&#60;/p&#62;
&#60;p&#62;I have been using this in the 'Fast Secure Contact Form' before recently purchasing 'Gravity Forms' and it proved extremely helpful.&#60;/p&#62;
&#60;p&#62;Pls let me know if there is any way to achieve this with Gravity forms.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fortunebuilders on "Another display:none issue"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/another-displaynone-issue#post-267549</link>
			<pubDate>Wed, 22 May 2013 05:37:21 +0000</pubDate>
			<dc:creator>fortunebuilders</dc:creator>
			<guid isPermaLink="false">267549@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have looked through the posts on the issue of display:none on a conditional form, and have tried a number of things, and cannot get the issue resolved. You can see my site here: &#60;a href=&#34;http://www.fortunebuilders.com/wins/deal-profile/&#34; rel=&#34;nofollow&#34;&#62;http://www.fortunebuilders.com/wins/deal-profile/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;After trying it with ALL plguins disabled, and a different theme (fresh version of twentytwelve), the problem still persists. I made sure to enable ajax when embedding the form in the page, I'm not sure if this matters. I have tried removing everything except wp_footer(); from the footer, and all scripts from the header; have reverted to jQuery 1.8.3; just upgraded to the latest version of Gravity Forms; uninstalled and reinstalled Gravity Forms; made sure no other versions of jQuery are running - properly deregistered and reregistered jQuery in the functions.php file.&#60;/p&#62;
&#60;p&#62;I haven't yet upgraded WordPress to 3.5.1. We are currently running 3.4.1 and unfortunately I cannot upgrade at the moment without backup and approval. We have a lot of stuff running on the site and cannot afford to break anything right now potentially from a WP upgrade.&#60;/p&#62;
&#60;p&#62;Maybe I can revert to an older version of Gravity Forms? I don't know if there is an issue in the latest version.&#60;/p&#62;
&#60;p&#62;In the Gravity Forms settings, however, there is a checkmark (indicator of OK) next to WordPress 3.4.1, as well as PHP 5.2, which we are using for right now (I upgraded to 5.3 to see if this would fix the issue, and it didn't, so I reverted because we need 5.2 for some things right now).&#60;/p&#62;
&#60;p&#62;So, I was wondering if anyone has anything else I can try, or may be willing to look at the code we have and see if you can find any potential errors.&#60;/p&#62;
&#60;p&#62;Also, the form displays properly in preview mode.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jkirker on "Execute a JS/jQuery function on focus"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/execute-a-jsjquery-function-on-fucus#post-254428</link>
			<pubDate>Wed, 15 May 2013 15:42:10 +0000</pubDate>
			<dc:creator>jkirker</dc:creator>
			<guid isPermaLink="false">254428@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have some jQuery that I need to execute onFocus for the datepicker which will block out days.  &#60;/p&#62;
&#60;p&#62;Here's the jQuery that I'm running on the page:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
function disableDays(selector,days,min) {
    var $ = jQuery;    
    var daysToDisable = days; // [5, 6] // Sat &#38;amp; Sun   

    function disableSpecificWeekDays(date) {        
        var day = date.getDay();        
        for (i = 0; i &#38;lt; daysToDisable.length; i++) {          
            if ($.inArray(day, daysToDisable) != -1) {            
                return [false];          
            }        
        }        
        return [true];      
    }

    $(selector).datepicker(&#38;#39;option&#38;#39;, &#38;#39;beforeShowDay&#38;#39;, disableSpecificWeekDays);
    $(selector).datepicker(&#38;#39;option&#38;#39;, &#38;#39;minDate&#38;#39;, min);
}
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I need to execute this function on focus for Field ID 75 &#60;/p&#62;
&#60;p&#62;How do I add this to the datepicker input?&#60;br /&#62;
&#60;code&#62;onfocus=&#38;#39;(disableDays(&#38;#39;#input_2_75&#38;#39;,[5,6],&#38;#39;+4d&#38;#39;);):&#38;quot;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Piet on "how to solve javascript conflict with Zurb Foundation?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-solve-javascript-conflict-with-zurb-foundation#post-224871</link>
			<pubDate>Fri, 26 Apr 2013 02:54:46 +0000</pubDate>
			<dc:creator>Piet</dc:creator>
			<guid isPermaLink="false">224871@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;WP 3.6-beta1-24041&#60;br /&#62;
GF 1.7.2&#60;br /&#62;
building a theme with Foundation 4.1.2&#60;br /&#62;
cannot give URL, because in local development&#60;/p&#62;
&#60;p&#62;As soon as I activate Gravity Forms I run into conflicts. I cannot modify any of the forms in the backend and via the frontend no notifications are sent out upon submitting a form.&#60;/p&#62;
&#60;p&#62;The error in the backend says:&#60;br /&#62;
Timestamp: 26/4/13 2:47:35&#60;br /&#62;
Error: ReferenceError: gform_get_tooltip_options is not defined&#60;br /&#62;
Source File: &#60;a href=&#34;http://domain.local/wp-content/plugins/gravityforms/js/form_admin.js&#34; rel=&#34;nofollow&#34;&#62;http://domain.local/wp-content/plugins/gravityforms/js/form_admin.js&#60;/a&#62;&#60;br /&#62;
Line: 606&#60;/p&#62;
&#60;p&#62;It doesn't matter whether I use the no-conflict mode, doesn't work either way. On top of that the theme loads jquery-noconflict by default and a whole bunch of other scripts.&#60;/p&#62;
&#60;p&#62;I have deregistered the WordPress jQuery version and instead use version 1.9.1 via Google. Foundation also uses zepto. All scripts are properly enqueued.&#60;/p&#62;
&#60;p&#62;My questions is two-fold.&#60;br /&#62;
Does anyone else have similar issues and/or how are these type of conflicts usually solved?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rcandela on "Using Query Strings on Redirect page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-query-strings-on-redirect-page#post-163369</link>
			<pubDate>Thu, 07 Mar 2013 13:22:44 +0000</pubDate>
			<dc:creator>rcandela</dc:creator>
			<guid isPermaLink="false">163369@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm new to query strings, and am trying to get data to post to a redirect page after submit.  On my site, I'm using gravity forms so users can purchase a service.  The form redirects to PayPal and all is well.  After confirmation of payment, they are redirected to a new page.  I've passed the query string to the redirect page, but have absolutely no idea how to post data in Wordpress to show the query string.  Call me a novice developer, I guess.&#60;/p&#62;
&#60;p&#62;Could you give me the walk through, on how to populate data on a new page (not in a form), using the query string parameters outlined in the form settings, redirect page.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
