Skip to content

Add Error Display for minlength and maxlength Constraints #5

@shri30yans

Description

@shri30yans

Currently, the input boxes in the Create Project page do not provide any feedback when the entered text does not meet the specified minlength or maxlength constraints. We need to implement error messages when these constraints are violated.

Show the error message below that particular input box.

Requirements

  1. Minlength Error: If the text entered in the input box is shorter than the defined minlength, an error message should be displayed indicating that the input is too short.
  2. Maxlength Error: If the text exceeds the defined maxlength, an error message should be shown indicating that the input is too long.

Acceptance Criteria

  • When the user inputs text:
    • If the text length is less than minlength, show an error message: "Input is too short. Minimum length is X characters."
    • If the text length exceeds maxlength, show an error message: "Input is too long. Maximum length is Y characters."
  • The error message should disappear once the input meets the constraints.

Additional Information

  • Use red text or an error icon below to the input box to make the error more noticeable.
  • Ensure that the error messages are clear and concise.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions