Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // change the 6 here to your form ID
- add_filter('gform_confirmation_6', 'display_long_lead', 10, 4);
- function display_long_lead($confirmation, $form, $lead, $ajax){
- $lead = RGFormsModel::get_leads($form['id']);
- // print_r($lead);
- foreach($lead as $k=>$lead) {
- // get complete lead information for each lead
- $complete_lead = RGFormsModel::get_lead($lead['id']);
- // print_r($complete_lead);
- }
- // we didn't actually do anything with the confirmation
- return $confirmation;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement