Aug 28th, 2010, 10:32 AM
Hi Tombr,
Sure! The hooks are just for attaching your own code to a particular juncture in the code. What you really need is to call a core function within your Submission Pre-Parser (or Hooks Manager) rule to retrieve all the pertinent info.
Probably what you want is this guy: ft_get_submission_info.
If you call that function in your Submission Pre-Parser rule with the appropriate $form_id and $submission_id values, it will return a hash of database column names to values. Here's an example:
Then put through a test submission. You should see the submission contents outputted to the screen. That should give you an idea of what info it contains and how to get at it. Once you're okay with it, just remove the print_r() and exit;
Hope this helps!
And good luck!
- Ben
Sure! The hooks are just for attaching your own code to a particular juncture in the code. What you really need is to call a core function within your Submission Pre-Parser (or Hooks Manager) rule to retrieve all the pertinent info.
Probably what you want is this guy: ft_get_submission_info.
If you call that function in your Submission Pre-Parser rule with the appropriate $form_id and $submission_id values, it will return a hash of database column names to values. Here's an example:
PHP Code:
$submission_info = ft_get_submission_info($form_id, $submission_id);
print_r($submission_info);
exit;
Then put through a test submission. You should see the submission contents outputted to the screen. That should give you an idea of what info it contains and how to get at it. Once you're okay with it, just remove the print_r() and exit;
Hope this helps!

- Ben