So FormIt has its own FormItSaveForm hook that you use inside the FormIt call to save a copy of a submitted form into the FormIt listing in the manager.
Is there a way to programmatically save an array of fields into this same listing? Why I ask is because we’re using a custom checkout procedure that goes to an external CC transaction, which when successful, then sends data back to an url on the website. Inside this URL are the fields I want to store, so obviously it can’t be done using just the FormIt call. Any ideas?
If I’m understanding you, I would think a custom snippet on the page at that URL would be the way to go. The data should be in the $_POST or $GET array.
The first step might be this line of code for the snippet:
Thanks Bob, yeah I figured that much (it’s $_GET), but I don’t know enough about the intricacies of the rest of that snippet’s code. I got someone from the slack chat to help me with it.
The SaveForm hook fetches information from the FormIt Hook instance, not the $_GET or $_POST, so no, you’re not (easily) going to be able of calling that from a snippet. Unless you go the route of creating a fake formit and hook instance and passing that along, but I don’t know if that’s the best way to go.