Accessing form data for output
-
Hello!
How do I access the entry data that’s been submitted thru a form? I need to create a listing of this data on one of my pages.
I got as far as this but I don’t know how to get the Lead ID:
$formid = 3; // Form ID #3 is the Employer Form $form_count = RGFormsModel::get_form_counts($formid); // Displaying Total Entries echo $form_count['total']; $form = GFFormsModel::get_form_meta( $lead[$formid] ); $values= array(); foreach( $form['fields'] as $field ) { $values[$field['id']] = array( 'id' => $field['id'], 'label' => $field['label'], 'value' => $lead[ $field['id'] ], ); }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Also is there a list of functions/calls/etc… for accessing GF data? The GF documentation is very sparse on this.
THanks,
rich
- The topic ‘Accessing form data for output’ is closed to new replies.