[Forminator Pro] Forminator Pro feature request: temporarily disable all required field checking f

1

Request: Have a toggle for a form that turns off/on the Require Field checking.

Reason: In longer forms, especially multi-page ones, testing changes on the front end can be VERY tedious if you have to keep completing all the required fields.

Yes, you can manually turn off required fields, but it’s a multi-click process to turn one off, and that really builds up if you have lots of required fields. And then you need to manually turn them all on again! (Which has potential for introduced errors if you miss one).

What would be brilliant is a toggle, in the BEHAVIOUR settings panel for a form, that allows for Required Field checking to be turned off or on. It would be enabled by default – keeping current form behaviour and backwards compatibility.

Toggling it on would stop the required field checking.

[attachments are only viewable by logged-in members]

Bonus suggestion: if the toggle is clicked, the form will add a message to the top of its front-end layout that says “Admin note: Required Fields checking has been disabled. Make sure you re-enable it in Behaviour>Required Fields before sending this form live.”

 

 

  • Nithin Ramdas
    • Support Wizard

    Hi minty_hunter ,

    While this feature would be helpful as you have stated during the testing phase, but I’m not sure how well it would be beneficial to all users, as it targets a specific scenario.

    When implementing features we’ll also have to consider the effective use of the development resources too. However, I do understand you and I’ll make sure to bring your request to our Forminator team’s attention so that they are aware of this ticket.

    I’ll also move this ticket to the Features & Feedback section so that we can get more feedback from other members who would find such a feature would be helpful.

    The more feedback from other members the more it’ll be considered down the roadmap.

    Kind Regards,
    Nithin

  • minty_hunter
    • Design Lord, Child of Thor

    Hi Nithin,

    I appreciate your prompt response!

    And I agree, it won’t be beneficial to all users, but I do think it could benefit a lot of users who are doing more than a quite simple form… or indeed, even simple forms that have a fair few required fields!

    I also think it has the advantages of being backwards compatible (if it requires actively toggling an option on) and most probably not particularly complex to implement, given it’s adding one more check to the submission code, eg:

    ` if ( allRequiredFieldsCompleted() || disableRequiredToggleIsTrue() ) … then allow submission/step to next page

    Anyway, moving it to Features & Feedback would be appreciated.

    One final question: are you able to point me to the Forminator file where it does the required field check? That’d help me potentially do a quick tweak myself, while I’m waiting to see if this gets onto the roadmap :smiley:

  • Nithin Ramdas
    • Support Wizard

    Hi minty_hunter ,

    I’m afraid, these aren’t just one specific file or code regarding this. The checks for the required fields are added under /wp-content/plugins/forminator/library/fields/ for each field and then the plugin uses JQeury files in the frontend ie:

    forminator/assets/js/library/jquery.validate.min.js
    forminator/assets/js/front/front.validate.js
    
    

    However, all the JS are complied in the following file during its execution:
    forminator/build/front/front.multi.min.js

    So I’m afraid, there isn’t a one-step action that could be a suggestion as it’ll require a lot of changes on the plugin side.

    Another workaround you could consider to apply globally would in the following file:
    wp-content/plugins/forminator/library/abstracts/abstract-class-field.php

    There is a function is_required. Currently, this function returns the value of $required.

    You could try to modify the above function to make all fields required, you can change the return statement to return true. This will enforce that all fields are always treated as required fields by true and fields as optional by returning false.

    Please do note that the above is more of a suggestion if you are looking for custom development. It isn’t something I have fully tested to say how well it’ll work.

    Best Regards,
    Nithin

  • minty_hunter
    • Design Lord, Child of Thor

    Hi Nithin,

    Thanks for the extra info. It’s really useful. If I develop on a testing site (so I’m not affecting any other live forms), I can modify is_required to always return false, to allow for quick testing of multipage forms without having to fill out every required field.

    I’ll be interested to see if there’s broader interest in this concept. I find sometimes even on simpler single-page forms, when you’re just trying to test and tweak the submission/email side, required fields make it a slow process. We’ll see if others feel the same!

    Appreciate all your help!