Please replace the ??? with your data!
Thank you for this tremendous plug-in you are very generous to spend so much time in developing and maintaining it.
If at all possible I would like to be able to access the tracking ID (the 'sub_id' value from the table 'cformsdata') from the actions() function in my-functions.php to build a link to an uploaded file. I have searched extensively through the forums in order to find a solution but have been unable to attain the desired outcome.
I understand that I can access the tracking ID by using the 'get_cforms_entries' API call as stated in the forums here and here and have done so successfully.
I understand that I am supposed to be able to access the tracking ID as a predefined variable as stated in the help documentation. I believe, although I need to test again, that the substitution happens correctly if using the '{ID}' placeholder in the admin email but I would like to access it from my-functions.php
This particular situation requires me to be able to access the filename from the submitted form data but as you well know I also need the tracking ID (noid) to correctly form the file link. I have tried adding {ID} as the default value to a hidden field but no substitution occurs and I am left with the string '{ID}' as the submitted value.
I could query the database directly from the actions() function but I would need a unique identifier to extract a single record. If at all possible I would like to use the one that already exists.
Is it possible to access the tracking id from the actions() function in my-functions.php so as to correctly form the link to the file?
If so how can I go about doing so?
Many Thanks,
Spence