Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8284803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:14:38+00:00 2026-06-08T11:14:38+00:00

My validation.yml is given: task: – Email: message: The email {{ value }} is

  • 0

My validation.yml is given:

    task:
        - Email: 
               message: The email "{{ value }}" is not a valid email.
        - MinLength: { limit: 50, message: You must be 50 or under to enter. }

My issue is that if I give “wrong-email” in the task-field it gives two error messages:

The email "wrong-email" is not a valid email.
You must be 50 or under to enter.

Actually, I want to show only one error-message at a time.
That means it should check for the validation “MinLength” only if it is a valid email.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:14:40+00:00Added an answer on June 8, 2026 at 11:14 am

    Validation sequencing can be done using group sequences. I fixed group sequences for the YAML driver only today, so you might need to wait for the next release of the 2.0 or master branch.

    MyEntity:
        group_sequence: [MyEntity, Extra]
        properties:
            task:
                - Email: { message: ... }
                - MinLength { limit: 50, message: ..., groups: Extra }
    

    Now the constraints in group “Extra” will only be validated if all constraints in group “MyEntity” (i.e. the default group) succeed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Textarea validation, How to limit the characters in a textarea for not exceeding more
validation-api-1.0.0.GA.jar and hibernate-validator-4.1.0.Final.jar are in classpath. mvc:annotation-driven is in -servlet.xml file. @RequestMapping(value = /addEmployee,
Validation in Spring 3.x using @Valid annotation: Below is snippet from the messages_en.properties. I
I've set validation in model: validates_inclusion_of :height, :in => 36..96, :allow_nil => true, :message
Custom Validation Control: <asp:CustomValidator ID=valSex runat=server ErrorMessage=1.2 &lt;b&gt;Sex&lt;/b&gt; not specified EnableClientScript=true ClientValidationFunction=ValidateSex SetFocusOnError=True>Selection required</asp:CustomValidator>
What validation control would I need if I want the user to enter only
Right now, I have a file called validation.yml with the validation of all the
The validation sometimes works when tabbing but not always. For example, load webpage, delete
Usually validation message appears right to input field: http://aralbalkan.com/wp-content/uploads/2008/01/better-flex-validation-errors.gif But if there is not
Date validation is not working properly. If day = 90, month = 1 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.