Tell us what you are trying to do?
Our organization uses multiple databases in a WordPress multisite environment where we need to save post form data that is submitted in the frontend to a non-local (remote) database. We need guidance on how to achieve this using Custom Code Snippets or any other method that you suggest.
Steps:
User fills out a form on our site running on Toolset
On form submission, that form data is stored in another database
Is there any documentation that you are following?
No
Is there a similar example that we can see?
No, that's why I am asking
What is the link to your site?
sandbox.jhatkaa.org
Hi there
I don't have any advice about saving content in remote databases, I don't know what your setup is and it is not something we can provide support for.
I can point you to our Forms API, though: https://toolset.com/documentation/programmer-reference/cred-api/
You might want to use the cred_save_data hook to trigger your code; that runs just after the submitted post has just been saved to the local database.
If you want to intervene before the data is saved you may want to use the hook cred_before_save_data.