Hi Carl.
Thank you for your feedback. :-)
I did find a way to get the entry_id in the gform_pre_submission_filter hook, but it's a bit complicated. Here's what I did.
I placed the {entry_id} in the message textarea in the "Notification to admin" section. I then called the content from the gform_pre_submission_filter hook like this:
$form['notification']['message'] = $form['notification']['message'] .' '. $email_body';
Where $email_body contains all my modified content and $form['notification']['message'] gets the entry_id.
This is why I actually thought that the gform_pre_submission_filter hook was called after the data was stored in the db.
Vayu
Posted 13 years ago on Friday August 19, 2011 |
Permalink