Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] description character limit validation issue (#4746) #1010

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

mhdamaan79
Copy link
Contributor

This pull request resolves issue ushahidi/platform#4746, where users were unable to receive validation feedback when exceeding the maximum character limit in the "Description" field while creating a new collection. Previously, clicking the "Save" button did not display a validation message.

Changes Made:

  • Implemented character limit validation in the "Description" field of the Collection creation form.
  • Added a validation message to notify users when the character limit is exceeded.
  • Updated the behavior of the "Save" button to become inactive when the character limit is exceeded and active when the character count is within the limit.

Before
https://github.com/ushahidi/platform-client-mzima/assets/118375524/995e0348-a328-4110-829a-2a807f282cd5

After
https://github.com/ushahidi/platform-client-mzima/assets/118375524/ab89313e-d632-4870-922e-fc21063967a5

@mhdamaan79
Copy link
Contributor Author

Addressing previous PR (824) with corrected branch name.
@Ifycode

@Angamanga
Copy link
Contributor

@Angamanga Todo, update with 255 chars maximum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants