<?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: JS bug in admin for select fields...</title>
		<link>https://legacy.forums.gravityhelp.com/topic/js-bug-in-admin-for-select-fields</link>
		<description>Gravity Support Forums Topic: JS bug in admin for select fields...</description>
		<language>en-US</language>
		<pubDate>Sun, 10 May 2026 14:15:50 +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/js-bug-in-admin-for-select-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "JS bug in admin for select fields..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/js-bug-in-admin-for-select-fields#post-184345</link>
			<pubDate>Mon, 25 Mar 2013 17:43:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">184345@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you are using WordPress 3.5.1 and Gravity Forms 1.6.12, please begin troubleshooting by checking for theme and plugin conflicts using these tips &#60;a href=&#34;http://rkt.gs/testing&#34; rel=&#34;nofollow&#34;&#62;http://rkt.gs/testing&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If you don't find anything there, I will bring this to the attention of the development team.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Contexture on "JS bug in admin for select fields..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/js-bug-in-admin-for-select-fields#post-184139</link>
			<pubDate>Mon, 25 Mar 2013 13:16:45 +0000</pubDate>
			<dc:creator>Contexture</dc:creator>
			<guid isPermaLink="false">184139@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;After the last update I noticed this problem popping up while trying to edit a select/dropdown from my WordPress admin.&#60;/p&#62;
&#60;p&#62;The problem:&#60;br /&#62;
In the WordPress admin, while editing a form, clicking on the &#34;Edit&#34; link for a select field which contains numeric option values was throwing this error:&#60;/p&#62;
&#60;p&#62;Object 43 has no method &#34;replace&#34;&#60;/p&#62;
&#60;p&#62;As a result, the edit options do not appear and the element cannot be edited.&#60;/p&#62;
&#60;p&#62;Expected behavior:&#60;br /&#62;
Clicking on &#34;edit&#34; for the dropdown should have opened the dropdown's customization options. Clicking &#34;edit&#34; should not have generated any JS errors.&#60;/p&#62;
&#60;p&#62;Detail:&#60;br /&#62;
The dropdown contained a list of options with numeric values and separate text. The first option contained a value with the integer &#34;43&#34;, and the JS was assuming ( by virtue of calling &#60;code&#62;value.replace()&#60;/code&#62; ) that the &#34;value&#34; variable would be a string. This causes an error because the .replace() method only exists for strings, not for integers.&#60;/p&#62;
&#60;p&#62;Solution:&#60;br /&#62;
The problem file is &#60;code&#62;js.php&#60;/code&#62; in the &#60;code&#62;GetFieldChoices()&#60;/code&#62; function. I was able to solve the error for now by adding &#60;code&#62;value = value.toString();&#60;/code&#62; at around line 869, after the value variable is defined.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
