<?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: Using gform_post_render slows down my Form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-gform_post_render-slows-down-my-form</link>
		<description>Gravity Support Forums Topic: Using gform_post_render slows down my Form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:09:34 +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/using-gform_post_render-slows-down-my-form" rel="self" type="application/rss+xml" />

		<item>
			<title>mike52 on "Using gform_post_render slows down my Form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform_post_render-slows-down-my-form#post-263308</link>
			<pubDate>Mon, 20 May 2013 11:25:22 +0000</pubDate>
			<dc:creator>mike52</dc:creator>
			<guid isPermaLink="false">263308@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Im 100% sure I've written terrible jQuery and I shouldn't be let near a keyboard again lol.&#60;/p&#62;
&#60;p&#62;Here is my form &#60;a href=&#34;http://designfitz.com/product/thesis/&#34; rel=&#34;nofollow&#34;&#62;http://designfitz.com/product/thesis/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;when you click 'Front &#38;amp; Spine' radio button it takes aaages to change, but if i remove this code its fixed, I'm sure im using gform_post_render wrong. Any ideas how I could tidy up this code? and use gform_post_render correctly?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// Total Books for Delivery 1

    jQuery(function() {
    firstdeliverytotal();
    }
        );
    jQuery(&#38;quot;.steve select&#38;quot;).change(function() {
    firstdeliverytotal();
    jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])

    }
                               );

    function firstdeliverytotal()
    {
    var totalPoints = 0;
    jQuery(&#38;#39;.steve option:selected&#38;#39;).each(function(){
      totalPoints = parseFloat(jQuery(this).text()) + totalPoints;
    }
                                        );

    jQuery(&#38;quot;#input_7_16&#38;quot;).val(totalPoints);
    jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])

    }
    ;

    // Total Books for Delivery 2

    jQuery(function() {
    seconddeliverytotal();
    }
        );
    jQuery(&#38;quot;.smith select&#38;quot;).change(function() {
    seconddeliverytotal();
    jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])

    }
                               );

    function seconddeliverytotal()
    {
    var totalPoints2 = 0;
    jQuery(&#38;#39;.smith option:selected&#38;#39;).each(function(){
      totalPoints2 = parseFloat(jQuery(this).text()) + totalPoints2;
    }
                                        );

    jQuery(&#38;quot;#input_7_119&#38;quot;).val(totalPoints2);
    jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])
    }
    ;

    // Total Hardbacks for Delivery1
    jQuery(function() {
    hardbacksdelivery1();
    }
        );
    jQuery(&#38;quot;#input_7_106,#input_7_105&#38;quot;).change(function() {
    hardbacksdelivery1();
    jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])

    }
                               );

    function hardbacksdelivery1()
    {
    var totalhardbacks1 = 0;
    jQuery(&#38;#39;.hardback1 option:selected&#38;#39;).each(function(){
      totalhardbacks1 = parseFloat(jQuery(this).text()) + totalhardbacks1;

    }
                                        );

    jQuery(&#38;quot;#input_3_11&#38;quot;).val(totalhardbacks1);
    jQuery(&#38;quot;#input_7_118&#38;quot;).val(totalhardbacks1);
        jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])
    }
    ;

    // Total Hardbacks for Delivery2
    jQuery(function() {
    totalhardbacks2();
    }
        );
    jQuery(&#38;quot;#input_7_109,#input_7_108&#38;quot;).change(function() {
    totalhardbacks2();
    jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])

    }
                               );

    function totalhardbacks2()
    {
    var totalhardbacks2 = 0;
    jQuery(&#38;#39;.hardback2 option:selected&#38;#39;).each(function(){
      totalhardbacks2 = parseFloat(jQuery(this).text()) + totalhardbacks2;

    }
                                        );

    jQuery(&#38;quot;#input_7_123&#38;quot;).val(totalhardbacks2);

        jQuery(document).trigger(&#38;#39;gform_post_render&#38;#39;, [7,1])
    }
    ;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
