[Forminator Pro] Can’t submit form due to required hidden fields not being filled out

Forminator isn’t letting me to submit a form. I have some conditional fields and Forminator seems to think that I need to fill required fields that are hidden before I can submit the form. Can you help with that?

  • Adam
    • Support Gorilla

    Hello Jaime

    I hope you’re well today!

    I checked your form and the reason for the problem is that the form in question is using “nested” conditions for some of those required fields. By “nested” I mean that some “conditionally visible” fields are using visibility rules based on other “conditionally visible” fields. This is a bit complex and there are issues with proper handling such forms “validation”.

    Our developers are looking into that but for now I can only confirm that this is the reasons. I have reported this case to them for further check and we’ll update you here as soon as we get to know more details on how to possibly handle that.

    Kind regards,
    Adam

  • Adam
    • Support Gorilla

    Hello Jaime

    I don’t have any update on this yet, I’m afraid. It’s been reported to our developers but they are dealing with a lot of complex tasks on daily basis and their response time might be longer than hours here on forum. They need to first test it again and investigate what is causing that (I mean – so far I know what’s causing the issue by we don’t know “why” yet) and then come up with the fix or code improvement for this.

    We’ll update you here as soon as we get to know more.

    Kind regards,
    Adam

  • Tho Bui
    • SLS

    Hi Jaime ,

    I hope you’re well today!

    I have prepared a custom snippet which you can use as a guide here:
    https://gist.github.com/wpmudev-sls/8975c5339b997bffadced3fdebcf1b5e

    You can download a zip, unzip it and upload file forminator-fix-can-not-submit-on-nest-required-fields.php to your wp-content/mu-plugins folder. If that folder doesn’t exist you can simply create it.

    If you are not familiar with mu-plugins you can read about them here:
    https://wpmudev.com/docs/getting-started/download-wpmu-dev-plugins-themes/#installing-mu-plugins
    or you can paste it in your child theme’s functions.php file.

    Kind regards,
    Tho Bui