You would put all your custom code in your themes functions.php, which is where you would put any customizations that take advantage of hooks.
The problem is since you are manually sending the emails you need some way to generate the link that passes the encrypted value because that is outside of Gravity Forms.
All of the hooks/filters are documented in the Documentation area here:
http://www.gravityhelp.com/documentation/page/Developer_Docs
The easiest way to do this is you'd setup a hidden field to be populated dynamically (edit the field, select advanced tab, set it to be populated dynamically and give it a parameter name). The parameter name is what would be used in the query string to pass data to that field. This would now populate that field with the encrypted value that is passed to it in the query string.
Then you would use the gform_post_submission hook and use PHP to decrypt the value and store the true value in it's place.
But again as I noted above the issue is the initial encrypted value, by sending the emails manually you need some way to generate this value so you need to write PHP that will generate this for you. Which is outside the scope of Gravity Forms. But would be part of the code for decrypting the value because you'd need to know what method and how to decrypt the value based on how you encrypt it.
Posted 13 years ago on Wednesday April 27, 2011 |
Permalink