<?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: Changing Form ID</title>
		<link>https://legacy.forums.gravityhelp.com/topic/changing-form-id</link>
		<description>Gravity Support Forums Topic: Changing Form ID</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:25:35 +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/changing-form-id" rel="self" type="application/rss+xml" />

		<item>
			<title>vixvii on "Changing Form ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-form-id#post-33038</link>
			<pubDate>Fri, 19 Aug 2011 14:50:29 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">33038@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Vayu,&#60;/p&#62;
&#60;p&#62;Thanks so much for this and I actually wasn't aware of this. I haven't attempted changing any IDs in the database just in case it breaks anything. My biggest problem is that I am now up to ID 18 with forms and I need to change form ID 7 to 13. So I am a bit cautious of this... For now I just replace the 7 in my code to a 13 on my live site. I am going to remove my dev site soon and copy my live site back to the dev server - hopefully without any form ID issues.&#60;/p&#62;
&#60;p&#62;But say I have an issue with importing Form ID 7 and I delete it before importing any other forms and set the Auto Increment back to 7, this should work to re-import Form ID 7?&#60;/p&#62;
&#60;p&#62;Thanks again!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Vayu on "Changing Form ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-form-id#post-33009</link>
			<pubDate>Fri, 19 Aug 2011 07:31:16 +0000</pubDate>
			<dc:creator>Vayu</dc:creator>
			<guid isPermaLink="false">33009@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi vixvii.&#60;/p&#62;
&#60;p&#62;I had to do the same and ran into problems, when I changed the ID in the database.&#60;/p&#62;
&#60;p&#62;If you haven't created any other forms, then you can delete the form in the production site.  That will delete all entries for that form as well, so don't do that if this is an issue.&#60;/p&#62;
&#60;p&#62;Before importing the form again, you'll need to reset the autoincrement id in the database.  You can do that like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;ALTER TABLE &#38;lt;code&#38;gt;table_name&#38;lt;/code&#38;gt; AUTO_INCREMENT=1&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You would need to do that for the following tables:&#60;/p&#62;
&#60;p&#62;wp_rg_form&#60;br /&#62;
wp_rg_form_meta&#60;/p&#62;
&#60;p&#62;Then you can import your form and it should work as ID 1.&#60;/p&#62;
&#60;p&#62;I am sure you are aware of this, but be careful if this is on a live site, so make backups before. :-)&#60;/p&#62;
&#60;p&#62;Vayu
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Changing Form ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-form-id#post-31803</link>
			<pubDate>Fri, 05 Aug 2011 07:26:29 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">31803@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris, Thanks for the reply&#60;/p&#62;
&#60;p&#62;The problem started when I migrated (see topic &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/migrating-gravity-forms)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/migrating-gravity-forms)&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This one form did not import properly on the live server when I migrated. I made a complete DB backup on the development server and restored on the live server. So my user registration form was there, but had no fields. So I exported it from the dev server and imported on the live server, which worked, but of course gave it a different ID.&#60;/p&#62;
&#60;p&#62;What kind of errors will I face if I had to change the ID? I'm thinking that I should maybe re-create my live server on the dev server if something goes wrong again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Changing Form ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-form-id#post-31667</link>
			<pubDate>Thu, 04 Aug 2011 00:09:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31667@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you recreate the form on the development server to match the production server?  If the environments were the same, the new form should get the same ID on the development server as it has on the live server.  Changing the ID would be complicated and prone to error.&#60;/p&#62;
&#60;p&#62;Or, how about export all the forms from the live server and just import them on the development server?  I would be sure to back up everything first, in case something goes wrong.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>vixvii on "Changing Form ID"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/changing-form-id#post-31565</link>
			<pubDate>Wed, 03 Aug 2011 12:31:16 +0000</pubDate>
			<dc:creator>vixvii</dc:creator>
			<guid isPermaLink="false">31565@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Could you possibly help with a SQL function to change the ID of a form? I have a series of forms on my development server and then the same on my live server. But when migrating to the live server one form did not migrate properly and I had to recreate it, which resulted in the form having a different ID than on the development server.&#60;/p&#62;
&#60;p&#62;I would like to change the ID of the equivalent form on the development server to match the live server's form ID. This will make coding so much easier as I have to constantly change form IDs in the code.&#60;/p&#62;
&#60;p&#62;Any help on this will really be appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
