WP Manifestindependent plugin directory
manifest / forms / gravityexport-combined-entries

GravityExport Combined Entries

Adds ability to merge entries of multiple forms into one result set with GravityExport.

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gravitykit/gravityexport-combined-entries/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Enables ability to merge entries from multiple forms into one GravityExport download.

Installation

  1. Download the plugin file
  2. Upload plugin files to your plugins folder, or install using WordPress' built-in Add New Plugin installer
  3. Activate the plugin
  4. Add mapping configuration using the gk-gravityexport-combined-entries-mapping filter hook. Not sure how to add code to your site?
/**
 * THIS CODE IS AN EXAMPLE. DO NOT USE WITHOUT MODIFICATION.
 * 
 * You need to update the form ids (43, 44, and 45) with your own form IDs.
 * Also update the field IDs to match the IDs in your parent and combined forms.
 */
add_action( 'gk-gravityexport-combined-entries-mapping', function ( array $mapping ): array {

    // For form 43 (the main form)
    $mapping[43] = [

        // The first combined form (update with your own form ID)
        44 => [
            1 => 3, // Key = field ID on the combined form. Update with your own field ID.
            3 => 5, // Value = field ID on the main form. Update with your own field ID.
        ],

        // The second connected form (update with your own form ID)
        45 => [
            1 => 1, // Key = field ID on the combined form. Update with your own field ID.
            3 => 4, // Value = field ID on the main form. Update with your own field ID.
        ],
    ];

    return $mapping;
} );
  1. Use the download url for the main form and add ?combine=44,45 to merge the entries for forms 44 and 45, for example:
https://www.example.com/gf-entries-in-excel/fff97e7f54b72431ab1cb5dd16ecc?combine=44,45

Changelog

0.1.0 on December 8, 2022

  • Initial release