Skip Navigation

[Resolved] Where does Toolset Forms store the code which builds the Form (ShortCodes and HTML)?

This thread is resolved. Here is a description of the problem and solution.

Problem:
Where is the code (shortcodes and HTML) stored in the database for Toolset Forms?
If I create a Form, where are those ShortCodes and HTML saved?

Solution:
In the database table for posts.
You can read more details about how Forms stores the data here:
https://toolset.com/forums/topic/access-the-code-of-a-userform-from-a-cpanel-backup/#post-1457439

If you need more specific details either use PHP a SQL admin tool like PHPmyAdmin, to find where Forms stores the data, or contact our support for details.

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Antonio_V7832 4 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#1451153

My site was deleted, and with it, the changes in code I had done on a toolset form.

Is there any way to recover this form code from the files of site backup I did before that incident happened?

In other words, from what file or folder within toolset files I could recover my code from?

I'd be awesome if I don't have to code it from scratch.

PS: the backup won't work to restore the site because the database was corrupted. But all the files and directory system were backed up accordingly.

#1452523

Everything Toolset or WordPress in general creates is in the Database.

Nothing is saved in the FTP unless the plugin's code or WordPress' code or a theme's code, but not content, or Forms or Taxonomies etc.

Unfortunately, if you have no access to the database, and no previous export of the Forms available, it's the same as for the WordPress Posts: they will be gone, as stored only in the database.

I am sorry I cannot provide a better answer.

PS:
Custom Code added to the Toolset Settings > Custom Code, that will be accessible in the wp-content folder of your install.
If you have such code, you can recover it there.

#1456225

Thank you for answer.

Let's say I have access to the database where it was saved. Would I still need a working WordPress installation to be able to extract the data?

Or is there a specific table I could go for that code I'm looking for ?

#1457439

I thought the database was corrupted?

In any case, if you have the database, as I explained, you also have the data, because WordPress and Toolset can be re-downloaded, re-installed on a fresh site and then you can simply import the old database into the new and recover your data.

If you are looking for what table Toolset Forms stores its data, this will be mainly post, postmeta and options table.
You'd fine the "code" used to create the User form (HTML and ShortCodes) stored in the posts table, in the post body column of the post row that represents your Form.

Let's say you had a form ID 81 and name "My Form", you'd find it in the posts table, just like a native WordPress post, with name, ID, content, and other details.
The content is what you would be interested in this case.

#1459949

The dbs were corrupted, but I think I may have found a tool that may help me extract that data from it.

I'll give that a try before creating everything from ground zero.

Thank you Beda, my issue is resolved now!