Skip to main content

Custom validation error should supercede default error message

Currently, when a field is marked as "Required," the default error message ("This field is required") is displayed if the user submits the form without filling it out.

I have implemented custom error messages for specific fields and conditions, but these messages do not appear when the default error message takes precedence. It would be beneficial to have the ability to display my custom validation messages while still keeping the "Required" flag enabled and thereby retaining the visual indication of the required field (such as the asterisk).

Expected Behavior: When a required field fails validation due to custom conditions, the system should display the custom error message instead of the default "This field is required" message, all without requiring me to disable the "Required" flag.

Use Case: This enhancement would allow for clearer, more informative feedback to users, improving form usability while still ensuring that they understand which fields are required.
Steps to replicate: Create a text field and mark it as required. Go to Validation tab→select field → Add the field with condition “Is Not Empty” (essentially required) and add custom Error message. When the form is submitted default error message shows up instead of custom one.

Status: Completed3 comments

Log in to comment and vote

Comments3

  • Julien changed status to Completed
    Team•

    Dec 31, 2024

    Pinned

    Custom validations rules are now evaluated before everything else!

  • Julien changed status to Planned
    Team•

    Dec 18, 2024

    Pinned

    Hey, thanks for the great feedback! 100% agree, we’ll change this and start by evaluating the custom validation rules before the default one!

  • Peter Kizik

    •

    Jan 4, 2025

    Tested and I confirm it’s working. Thank you.