Title: Accessing form data for output
Last modified: August 21, 2016

---

# Accessing form data for output

 *  [Rabassa](https://wordpress.org/support/users/rabassa/)
 * (@rabassa)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/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.

 * 0 replies
 * 1 participant
 * Last reply from: [Rabassa](https://wordpress.org/support/users/rabassa/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/accessing-form-data-for-output/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
