Show Active Forms by Default on Form List

Set the form list filter to active forms by default.

March 25, 2021: Fixed a potential crash if Gravity Forms is not active or installed.

Overview

I’m a tidy person. I like things neatly organized, and that extends to Gravity Forms. If a form is no longer needed, I deactivate it. This simple action makes certain that active forms are properly represented in the forms list, and that makes it easier for me to manage those forms.

One problem I run into is that the default view in the forms list displays both active and inactive forms. I have to click the Active filter after loading the form list every single time I go to the list.

The time to click the filter and wait for the list to refresh adds up over time, so we built a plugin to change the default form list view to active forms.

Using the Plugin

Using this plugin is simple. Start by confirming that you have Gravity Forms installed and activated. Then, install and active the plugin.

Once activated, the default Forms view will display Active forms instead of All forms. There’s no configuration needed.

The other filters will still be functional. You can view all, inactive, or trashed forms by clicking the respective filter. The view simply defaults to Active when no other filter is specified.

Comments

  1. Tye Wickham
    Tye Wickham December 4, 2022 at 9:02 pm

    This looks useful! While I am looking at this my forms always sort by title is there a way to sort them by Form ID most current form 1st ( largest to smallest form ID)?

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff December 5, 2022 at 5:36 am

      Hi Tye,

      This snippet actually sorts and orders the list of Forms by the form ID in descending order.

      Best,

  2. Bnpositive
    Bnpositive January 19, 2022 at 7:48 pm

    Exactly what I needed! Still can’t figure out why that wouldn’t be an optional setting in the main code. Thanks for making GravityForms even better!

    Reply
  3. Andrea
    Andrea August 23, 2021 at 5:13 am

    Very useful thanks. Is there a way to do the same for the new GF2.5 form dropdown? It seems that gform_form_switcher_forms can do the trick

    Reply
    1. Dario Space
      Dario Space August 23, 2021 at 11:33 am

      Hi Andrea,

      When testing locally, it seems to be working for GF 2.5 as well.

      If you have an active Gravity Perks License, you can get in touch with us via our support form with your account email address and we’ll be happy to dig into this further.

      Best,

  4. Andrew
    Andrew December 8, 2020 at 5:36 pm

    This is very useful – Thanks! Is there a way to add a column that indicates whether the form is embedded somewhere on the website?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.

Download Plugin

Show Active Forms by Default on Form List

This field is for validation purposes and should be left unchanged.