• Resolved Greg Marshall

    (@timeassistant)


    Hello,

    Think I’ve found a slight bug. When you go into WP admin and click submissions it does not list all the forms in the selection dropdown if you have thousands of forms. Most likely just hitting a limit or something. We can have upto and over 2000 forms.

    Manually inserting the form ID into the URL will allow the viewing of any forms submissions but the select dropdown does not contain or search every form.

    so if I go to -> /wp-admin/admin.php?page=forminator-entries and search for “test form” it doesn’t show up, but I know the form exists and has entries. So If I go and get my form ID (4444 in this case) and add that to the submission viewer URL like so, -> /wp-admin/admin.php?page=forminator-entries&form_type=forminator_forms&form_id=4444 I can indeed view the submissions so the viewing/loading works fine, it’s just the dropdown selection box doesn’t seem to load a complete list.

    Obviously with a smaller number of forms it is fine. So is there a way to increase the amount of forms loaded in to the dropdown box? Or would there be a way to change it from a select box to a full search box?

    Look forward finding a solution thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @timeassistant

    I hope you’re well today and thank you for pointing this out!

    I think we’ve never tested Forminator with that many forms. I mean, we did test it with a lot of them but not thousands – it’s not really a common use case, I believe.

    But I looked into the code and it seems there actually is sort of a limit. The forms that are fetched to the “form switcher” on submissions page – they are fetched using Forminator API “get_forms()” method and among its parameters are two important numbers (undocumented in API docs): “page” and “per_page” – which are related to paging that is used on “Forminator -> Forms” page.

    Apparently those are set to use one page with 999 forms max – in 99% of cases it’s more than enough and I’ve never seen a setup with more forms than this. But it is something that certainly needs attention so I’ve reported it to our Forminator Team to review.

    For now, it should be possible to override this with a bit of custom code, I believe. Would you give it a try?

    The code is:

    <?php 
    
    add_filter( 'forminator_entries_get_forms', 'forminator_entries_get_forms_custom_limit', 11, 1 );
    function forminator_entries_get_forms_custom_limit( $forms ) {
    
    	$status = 'publish';
    	$limit = 2;
    	
    	$forms = Forminator_API::get_forms( null, 1, $limit, $status );
    	
    	return $forms;
    }

    To use it on site:

    – create an empty file with a .php extension (e.g. “forminator-custom-switcher-limit.php”)
    – copy and paste code into it
    – set your max limit in this line (replace number 2 with the number that will allow you get all forms)

    $limit = 2;

    – upload the file to the “/wp-content/mu-plugins” folder of your site’s WordPress installation

    Let us know if it works for you, please!

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @timeassistant ,
    
    We haven’t heard from you for several days now, so it looks like you no longer need our assistance.
    
    Feel free to re-open this topic if needed.
    
    Kind regards
    Kasia

    Thread Starter Greg Marshall

    (@timeassistant)

    Hi sorry for the delay, I have implemented the code and I’m currently testing / monitoring for issues. So far seems to be working perfectly though. Big thank you for the assist

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Submissions page – form dropdown limit’ is closed to new replies.