When they enter their transaction number, what will you show them? How are you generating the transaction number now?
It sounds like you need a simple form to accept one input: the transaction number. You will accept that number, and query the entries for (some form) and pull out (some fields) to show the visitor. You can use the gform_confirmation filter to query the entries for a specific form, then return that data, or return an error if there is no match. Here is the documentation for the gform_confirmation filter http://www.gravityhelp.com/documentation/page/Gform_confirmation
To pull out information from previous form entries, you can use the function RGFormsModel::get_leads. That can return all leads for one form, and you can see if there is a match on your one field, then display some of the other fields from the matching record.
The RGFormsModel::get_leads function is detailed in the plugin file forms_model.php. You can check the usage of the function there. The code you write will be placed in your theme's functions.php file.
Posted 11 years ago on Monday April 1, 2013 |
Permalink