Export Entries - Reduce 'Select a Form' dropdown to active forms only, or add search

Hi there,

We work with a client who has hundreds of gravity forms and when exporting entries they are finding the ‘Select a Form’ dropdown unwieldy. I couldn’t find anything on this topic - is there a snippet we could add that would make the dropdown include live forms only, or could a search be added?

Thanks
Ella

1 Like

The following snippet can be used to modify the list in this way…

// Remove inactive forms from export entries form list
add_filter( 'gform_export_entries_forms', function( $forms ) {

    $forms = array_filter( $forms, function( $form ) {
        return rgobj( $form, 'is_active' );
    } );

    return $forms;

} );

Reference: gform_export_entries_forms

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.