Render Gravity Forms Entries with DataKit
DataKit makes managing Gravity Forms entries effortless by allowing you to render them in a user-friendly table format. Here’s how:
- Automatic Integration: Seamlessly connects with Gravity Forms, pulling in all your form entries.
- Customizable Tables: Display entries in a table layout, customized to show the fields you need.
- Easy Filtering and Sorting: Sort and filter entries within the table for efficient data management.
Super-simple rendering of Gravity Forms entry data into a DataViews table
DataViews allows you to embed a table by defining the form you want to render, optionally filtering the values, defining the fields, and you’re done.
PHP
$gf_data_source = new \DataKit\DataViews\Data\GravityFormsDataSource( 14 );
//
$business_table = DataView::table(
'business-table',
$gf_data_source,
[
TextField::create( 1, 'Feature' ),
TextField::create( 2, 'Description' ),
],
)->paginate( 10, isset( $_GET['page'] ) ? (int) $_GET['page'] : 1 )->deletable('Delete');
// Register the DataView with the data view manager.
do_action( 'datakit/dataview/register', $business_table );