Adding A Custom Entry Link & Actions

I thought I had this, but then discovered I’m missing something. If anyone knows a better way of adding a custom entry link I’m all ears. The problem is that I was turned onto this page

However, this page only shows you one bit of the puzzle. Well, I got as far as I could and now I’m stuck. For some reason when I mark new entries as “Processed” and then trash them and then take them out of the trash they go right back to “Processed”.

I started with this:

// Adds another action to Gravity Forms Entry List called Processed
add_filter( 'gform_filter_links_entry_list', 'change_links', 10, 3 );
function change_links( $filter_links, $form, $include_counts ){
      $form_id = absint( $form['id'] ); //tells it to do for all forms
      $summary = $include_counts ? GFFormsModel::get_form_counts( $form_id ) : array(); //shows the count
      $active_entry_count = rgar( $summary, 'total' ); //the actual numbered area
 
 $filter_links[] = array(
                'id'    => 'processed',
        'field_filters' => array(), 
                'count' => $active_entry_count,
                'label' => 'Processed', 'Entry List', 'gravityforms',
                  'key' => 'is_processed',
                'value' => true,
      );
    return $filter_links;
}

Then I added this to get the new link into the Bulk Action menu:

  //This adds Mark as Processed to the Bulk Drop Down
 add_filter( 'gform_entry_list_bulk_actions', 'add_actions', 10, 2 );
  function add_actions( $actions, $form_id ){
      $actions['mark_as_processed'] = 'Mark as Processed';
        return $actions;
}

After that I added this (thinking I was all set) Nope:

   //This gives Processed its action in the bulk list
    add_action( 'gform_entry_list_action', 'perform_actions', 10, 3 );
     function perform_actions( $action, $entries, $form_id ){
                    if ( $action == 'mark_as_processed' ){
        foreach ( $entries as $entry_id )
              {
             echo 'Processed entry id ' . $entry_id . '<br/>';
            }
        }
    }

So as you can see I’m trying to create another entry list that sorta works just like Mark as Read and then maybe have it go back to ALL if it’s not being worked on. The client, instead of marking these as read simply throws them in the trash and I told them that’s not good. So I’m looking for a better solution.

As you can see I’m struggling to grasp the markup for GF.

Thanks in advance.

:grin: Hi GF. Can someone help me on this? Anyone from GF have any advice?