Hi.
I was wondering if it is possible to display the entry id for each entry on the overview page?
Cheers
Vayu
Hi.
I was wondering if it is possible to display the entry id for each entry on the overview page?
Cheers
Vayu
Okay, I found this hook, that could help me display the entry id:
add_action('gform_entries_first_column', 'first_column_content', 10, 5);
function first_column_content($form_id, $field_id, $value, $lead, $query_string) {
echo 'Entry id: <strong>'.$lead['id'].'</strong>';
}
This is not exactly what I was looking for but close enough.
I was actually looking to create a new column where the entry id would be displayed. But like I said, this is good enough. :-)
Vayu
Do you mean on this page?
http://example.com/wp-admin/admin.php?page=gf_entries&id=11 (where 11 is your form ID)? All the entries for a single form?
If so, you can click the [Edit] link in the table header to select the columns you want displayed. You can drag and drop them into a different order as well.
He he, I didn't know this was possible. Thanks Chris, for pointing this out. :-)
Vayu
You're welcome. Glad you found it.