Advertisement
chrishajer

Get lead_detail_long values in a loop

Nov 19th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2. // change the 6 here to your form ID
  3. add_filter('gform_confirmation_6', 'display_long_lead', 10, 4);
  4. function display_long_lead($confirmation, $form, $lead, $ajax){
  5.     $lead = RGFormsModel::get_leads($form['id']);
  6.     // print_r($lead);
  7.     foreach($lead as $k=>$lead) {
  8.         // get complete lead information for each lead
  9.         $complete_lead = RGFormsModel::get_lead($lead['id']);
  10.         // print_r($complete_lead);
  11.     }
  12.     // we didn't actually do anything with the confirmation
  13.     return $confirmation;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement