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.
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.
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 ?
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.
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!