<?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: Unable to edit form field in admin area (Patch included)</title>
		<link>https://legacy.forums.gravityhelp.com/topic/unable-to-edit-form-field-in-admin-area-patch-included</link>
		<description>Gravity Support Forums Topic: Unable to edit form field in admin area (Patch included)</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 15:49:40 +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/unable-to-edit-form-field-in-admin-area-patch-included" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Unable to edit form field in admin area (Patch included)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unable-to-edit-form-field-in-admin-area-patch-included#post-306289</link>
			<pubDate>Thu, 06 Jun 2013 14:01:26 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">306289@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll send this to our development team.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Foxtrot Media on "Unable to edit form field in admin area (Patch included)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unable-to-edit-form-field-in-admin-area-patch-included#post-306285</link>
			<pubDate>Thu, 06 Jun 2013 13:57:30 +0000</pubDate>
			<dc:creator>Foxtrot Media</dc:creator>
			<guid isPermaLink="false">306285@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;About a month ago on our website, we found we were unable to edit the fields for any forms in the admin area. I see a few people have had a similar issue on these forums, but I'm making a new thread to discuss a proper fix for this bug.&#60;/p&#62;
&#60;p&#62;I found the problem to be caused by an error being thrown by the javascript code in form_admin.js. See the error here: &#60;a href=&#34;http://i.imgur.com/jto8exS.png&#34; rel=&#34;nofollow&#34;&#62;http://i.imgur.com/jto8exS.png&#60;/a&#62;. Why is this error being thrown? Well, that's because of the code 2 lines above where the error is being thrown.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;for(i in classes) {&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The problem here is for(X in Y) loops enumerate properties of an object. This is similar, but not the same as how a regular for(;;) loop works: by iterating the indices of an array (the correct functionality for this case.) Because the script is currently using a for(X in Y) loop, it is trying to perform functions using various properties, as well as any array index. The fix is to simply use a regular for(;;) loop...&#60;/p&#62;
&#60;p&#62;&#60;code&#62;for(var i=0; i &#38;gt; classes.length; i++) {&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;As for why this bug isn't causing problems for everyone, and why it only started causing problems for us recently, I would say it probably is due to another module we are using that is adding properties to Arrays.&#60;/p&#62;
&#60;p&#62;As looping through all of the Arrays' properties isn't the intended functionality, I think this should be patched up. There are a few other for(X in Y) loops that should be changed to for(;;) loops in the script too; they're not causing any issues for me, but it's best to be prudent.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
