<?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: Field Values cut off at 200 chars in locales different than EN_US</title>
		<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us</link>
		<description>Gravity Support Forums Topic: Field Values cut off at 200 chars in locales different than EN_US</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:29:49 +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/field-values-cut-off-at-200-chars-in-locales-different-than-en_us" rel="self" type="application/rss+xml" />

		<item>
			<title>sboisvert@bryxal.ca on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-54023</link>
			<pubDate>Mon, 02 Apr 2012 16:38:16 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">54023@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Note for the original bug, I've fixed it this way to keep the double val and not have it change the values to localized floats for the SQL statement&#60;/p&#62;
&#60;p&#62;in get_field_value_long() change to:&#60;/p&#62;
&#60;p&#62;        $sql = $wpdb-&#38;gt;prepare(&#34; SELECT l.value FROM $detail_table_name d&#60;br /&#62;
                                INNER JOIN $long_table_name l ON l.lead_detail_id = d.id&#60;br /&#62;
                                WHERE lead_id=%d AND field_number BETWEEN %s AND %s&#34;, $lead_id, doubleval($field_number - 0.001),doubleval($field_number + 0.001));
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-53779</link>
			<pubDate>Thu, 29 Mar 2012 13:04:29 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">53779@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Now this (standard build, without my changes, latest version) has the repercussions that having wordpress load up with the French locale (fr_ca or fr_fr in French where doubles are stored as 14,1 internally makes gravity forms not recognize any address field or other field that has the 14.1  field numbering.&#60;br /&#62;
Those fields are not processed by:&#60;br /&#62;
if($lead != null &#38;amp;&#38;amp; $value == rgget($input_id, $lead)) line 1883 of forms_model.php in the function save_input()
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-44274</link>
			<pubDate>Fri, 16 Dec 2011 18:18:19 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">44274@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl, these are two separate forms.&#60;/p&#62;
&#60;p&#62;Just to note this problem is still in the most recent version of Gravity forms. And it still cuts off after 200 characters. (From my understanding this is that the long field doesn't get recognized and therefore only the shorter 200 char version field gets used)&#60;/p&#62;
&#60;p&#62;It is now in line 2089:&#60;br /&#62;
get_field_value_long()&#60;br /&#62;
from:&#60;br /&#62;
        $sql = $wpdb-&#38;gt;prepare(&#34; SELECT l.value FROM $detail_table_name d&#60;br /&#62;
                                INNER JOIN $long_table_name l ON l.lead_detail_id = d.id&#60;br /&#62;
                                WHERE lead_id=%d AND field_number BETWEEN %f AND %f&#34;, $lead_id, $field_number - 0.001, $field_number + 0.001);&#60;br /&#62;
to:&#60;br /&#62;
      $sql = $wpdb-&#38;gt;prepare(&#34; SELECT l.value FROM $detail_table_name d&#60;br /&#62;
                                INNER JOIN $long_table_name l ON l.lead_detail_id = d.id&#60;br /&#62;
                                WHERE lead_id=%d AND field_number = %d &#34;, $lead_id, $field_number);&#60;/p&#62;
&#60;p&#62;Thanks.&#60;/p&#62;
&#60;p&#62;(Again, I saw that this is not the right way to fix it, but just re-showing what I did to fix it, I understand it won't work for multi-fields and am keen on helping you fix it as we are using Gravity forms more and more)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-10449</link>
			<pubDate>Mon, 27 Sep 2010 17:16:57 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">10449@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How is this implemented? Are you using the same form and using WPML to translate them some how or are those 2 separate forms?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-10448</link>
			<pubDate>Mon, 27 Sep 2010 16:59:04 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">10448@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you Alex,&#60;br /&#62;
Every entry gets cut off at 200 char.&#60;br /&#62;
Its a standard Paragraph text.&#60;br /&#62;
We are using the WPML plugin to manage the multiple locales on our blog, that will make it easier for you to test with the French locale. &#60;/p&#62;
&#60;p&#62;you can view both the french and english versions of the forms here:&#60;br /&#62;
&#60;a href=&#34;http://www.liberal.ca/fr/contactez-nous/&#34; rel=&#34;nofollow&#34;&#62;http://www.liberal.ca/fr/contactez-nous/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.liberal.ca/contact/&#34; rel=&#34;nofollow&#34;&#62;http://www.liberal.ca/contact/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thank you,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-10446</link>
			<pubDate>Mon, 27 Sep 2010 16:41:31 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">10446@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Does it fail for every entry or just for ones with commas in it?&#60;br /&#62;
The field_number needs to be a float because multi-input fields such as name and address store each input value (first name, last name, etc..) as a float. So your solution might work for basic fields but it won't work on all scenarios. If the BETWEEN syntax is creating issues for the french locale, I can look into fixing the problem. Can you give me a detailed description on how to replicate the issue?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sboisvert@bryxal.ca on "Field Values cut off at 200 chars in locales different than EN_US"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/field-values-cut-off-at-200-chars-in-locales-different-than-en_us#post-10443</link>
			<pubDate>Mon, 27 Sep 2010 16:22:29 +0000</pubDate>
			<dc:creator>sboisvert@bryxal.ca</dc:creator>
			<guid isPermaLink="false">10443@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I had a rought time figuring it out but finnaly I found the bug,&#60;br /&#62;
on line 1390 of forms_model.php&#60;br /&#62;
&#34;WHERE lead_id=%d AND field_number = %d &#34;, $lead_id, $field_number - 0.001, $field_number + 0.001);&#34;&#60;br /&#62;
That fails when the wordpress Locale is something like French, the commas get interpreted differently somewhere in the prepare statement and the query fails and you get stuck with the short version of the string.&#60;/p&#62;
&#60;p&#62;changing the line to this:&#60;br /&#62;
&#34;WHERE lead_id=%d AND field_number = %d &#34;, $lead_id, $field_number);&#34;&#60;br /&#62;
will fix the issue.&#60;br /&#62;
I saw other places in the code where Between is used with the same logic of using floats instead of Int in the SQL query. I'm not entirely sure why it was done, I'm sure there was a logical reason at some point in time (or debugging and never got put back).&#60;br /&#62;
Either way, I hope it can be of use to others.&#60;/p&#62;
&#60;p&#62;-S
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
