PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Reset or Change Form IDs

  1. Is there someway to change or reset the form IDs after you have deleted some?

    I am trying to sync forms across a multisite setup so that all my custom functions are hooking in to the same IDs across different sites. My initial thought was to export a master list of forms then delete all forms, and then import the master list on all sites. The problem is that the numbers don't reset after you have created and deleted a form. Any thoughts on this problem?

    At this point it would seem that I need to go into my database and manually change each form ID on each site, but I would really like to avoid that if possible..

    Posted 11 years ago on Wednesday September 19, 2012 | Permalink
  2. How about exporting them clean from one site, even with missing form IDs, then import them into a site. They will be assigned sequential IDs in the new site. Did you already try that?

    Posted 11 years ago on Wednesday September 19, 2012 | Permalink
  3. Yes, the two problems with that is that they won't align right on my primary site. Because it doesn't restart the numbering. Plus my new sites are built from a template site, which carries over database entries (so that doesn't restart either).

    I went through and changed the IDs in the database, which was simple enough. Obviously though now all the meta is messed up, which is frustrating, but I think this is the only way.

    Posted 11 years ago on Thursday September 20, 2012 | Permalink
  4. Okay, that clearly didn't work. Simply too many fields in the DB to sync, after a few hours was still no where. Last resort is full deletion and reinstallation of GF across network.

    Posted 11 years ago on Thursday September 20, 2012 | Permalink
  5. Did you find a resolution to this? I have a very similar issue.

    Posted 11 years ago on Monday December 3, 2012 | Permalink
  6. There is no ideal solution. Exporting backups of the forms then uninstalling gf and starting over does the job, but obviously that isn't recommended.

    If your issue is syncing functions to specific forms on multisite (that was my originial), then using

    RGFormsModel::get_form_id('Name of your Form');

    to find the form ID each time helped me.

    Posted 11 years ago on Monday December 3, 2012 | Permalink
  7. So, I tried to do this manually from database and I get following error/notice:

    Notice: Undefined index: title in /var/www/vhosts/MY_DOMAIN/httpdocs/wp-content/plugins/gravityforms/form_detail.php on line 225 Form Editor :

    and there are no fields in the form.

    Any suggestion why this is happening or how it can be resolved.

    Thanks!

    Posted 11 years ago on Wednesday March 20, 2013 | Permalink
  8. Nevermind. Fixed.

    Thanks!

    Posted 11 years ago on Wednesday March 20, 2013 | Permalink
  9. Glad you were able to get this resolved.

    Posted 11 years ago on Saturday March 23, 2013 | Permalink

This topic has been resolved and has been closed to new replies.