Skip to main content

Why does the validation rules not work on the email field in this case and the data does not trigger a validation error?

Status: Rejected9 comments

Log in to comment and vote

Comments9

  • Archie

    Team•

    Nov 10, 2025

    Hi Lotus,

    Sorry for the confusion. Email input field does not need a custom validation to filter our email addresses. It will only accept valid email format as a default.

    Best,

    • Lotus Project

      •

      Nov 10, 2025

      With default validations I get an error as well!
      The issue is that the email field should be disabled in this case and the validation should not hit anyway, no mater if they are custom or default.
      It’s clear now?

  • Lotus Project

    •

    Nov 6, 2025

    I ment why does the field validation gets triggered even though the block should be disabled from the rules applies by choosing NO.

    • Archie

      Team•

      Nov 11, 2025

      Hi There,

      Sorry but can you please reach out to our live chat support and share the form URL so we can understand the issue better?

      • Lotus Project

        •

        Nov 11, 2025

        Hi Archie, this is the url of the form:

        https://opnform.com/forms/studiu-de-caz-management-clinica-medicala-ahfzks.

        Thank you!

        • Lotus Project

          •

          Nov 17, 2025

          Hi @Archie, so what do I do with this?

          • Archie

            Team•

            Nov 18, 2025

            Thanks for the update — and thank you for sharing the custom validation you added.

            Here’s what’s happening:

            The validation is still triggering because the field has a custom validation rule applied, and even if the block is conditionally disabled, that custom rule will still run in the background. This is why the email field shows an error when the rule is active, even though the block should be hidden or disabled based on the conditions.

            To fix this, please remove the custom regex validation you added:

            ^[a-zA-Z0-9]([._-]?[a-zA-Z0-9]+)*@[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$ 

            The email field already has built-in email validation, so you don’t need to set a custom rule for it. Once the custom rule is removed, the conditional logic will work as expected and the field won’t trigger validation when disabled.

            If it still behaves oddly after removing the custom rule, please let me know — I’m here to help and happy to check further!

            • Lotus Project

              •

              Nov 18, 2025

              Hi @Archie, thank you for the update.
              I’ve tested again after removing all the rules from validation, but I still get and error if the field is filled with the wrong values, even though it should be disabled.

              • Archie

                Team•

                Nov 25, 2025

                Sorry for the inconvenience here. Let me check this further.