<?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 User Favorites: fsluijs</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/fsluijs'>fsluijs</a></link>
		<description>Gravity Support Forums User Favorites: fsluijs</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:53:29 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-57232</link>
			<pubDate>Tue, 01 May 2012 16:02:09 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">57232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think the following code snippet will point you in the right direction. My form had a textarea, a hidden product field and a total field.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery(document).ready(function(){
	//NOTE: replace input_91_3 with the ID of your textarea
	jQuery(&#38;quot;#input_91_3&#38;quot;).change(function(){
		gformCalculateTotalPrice(91); //NOTE: replace 91 with your form ID
	});
});
function gform_product_total(formId, total){

  //only apply logic to form ID 91
  if(formId != 91)
	return total;

  var price = 0;
  //NOTE: replace input_91_3 with the ID of your textarea
  var character_count = jQuery(&#38;quot;#input_91_3&#38;quot;).val().length;

  if(character_count &#38;lt; 60){
	price = 7;
  }
  else if(character_count &#38;lt; 80){
	price = 8.5;
  }
  else if(character_count &#38;lt; 100){
	price = 10;
  }
  else if(character_count &#38;lt; 120){
	price = 11.5;
  }
  else if(character_count &#38;lt; 140){
	price = 13;
  }
  else if(character_count &#38;lt; 160){
	price = 14.5;
  }

  //NOTE: replace ginput_base_price_91_2 with the ID of your hidden product price field (you can see it by inspecting the markup of the form)
  jQuery(&#38;quot;#ginput_base_price_91_2&#38;quot;).val(price);
  return price;
}
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-57206</link>
			<pubDate>Tue, 01 May 2012 14:29:16 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">57206@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let me see if I can get any ideas on this one from the team. Sounds like it would potentially involve a customization of some kind.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fsluijs on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-57109</link>
			<pubDate>Tue, 01 May 2012 05:23:32 +0000</pubDate>
			<dc:creator>fsluijs</dc:creator>
			<guid isPermaLink="false">57109@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi guys, any news on this one?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fsluijs on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-56209</link>
			<pubDate>Mon, 23 Apr 2012 12:01:14 +0000</pubDate>
			<dc:creator>fsluijs</dc:creator>
			<guid isPermaLink="false">56209@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, a modulo function would be very useful in addition to the current calculation functions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fsluijs on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-56207</link>
			<pubDate>Mon, 23 Apr 2012 11:58:55 +0000</pubDate>
			<dc:creator>fsluijs</dc:creator>
			<guid isPermaLink="false">56207@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Rob, I've been trying the new functions. This looks promising!&#60;/p&#62;
&#60;p&#62;I do need some help with setting up  the basics of the formula. How can I refer to the Paragraph Text field and get the number of characters from that field?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-56200</link>
			<pubDate>Mon, 23 Apr 2012 11:38:43 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">56200@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You might want to try playing around with the Beta that has support for calculations to see if it could solve for this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/gravity-forms-v1-6-4-beta-1-released/&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/gravity-forms-v1-6-4-beta-1-released/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fsluijs on "Calculate cost based on chars in text area"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-cost-based-on-chars-in-text-area#post-56157</link>
			<pubDate>Mon, 23 Apr 2012 06:01:36 +0000</pubDate>
			<dc:creator>fsluijs</dc:creator>
			<guid isPermaLink="false">56157@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm using GF as a form to send advertisement text. I'd like to calculate the price based on the amount of characters in the main text area. The prices are calculated through this formula: EUR 7 for anything up to 60 characters; for each extra 20 characters we charge EUR 1,50. Max is 160 characters.&#60;/p&#62;
&#60;p&#62;I've been trying to get something like this going with conditional product fields, but didn't get that to work.&#60;/p&#62;
&#60;p&#62;Can you please help out by showing me how this can be done? I just need a small example and can copy/modify from there.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
