Skip to content

Conversation

@dhruv-git-sys
Copy link

Fixes #1465 - Program name allows spaces in app designer

Summary

This PR adds a validation to the program name field in the App Designer so that spaces are not allowed in program names. Previously, it was possible to enter program names with spaces, which could cause issues elsewhere in the system.

Changes

  • Updated src/adminApp/Program/EditProgramFields.js to disallow spaces in the program name input.
  • Added UI feedback (error message) if a user enters a space in the program name field.

How to Test

  1. Go to the App Designer and try to create or edit a program.
  2. Try entering a name with spaces (e.g., "My Program").
  3. You should see an error message stating that spaces are not allowed, and the form should prevent you from submitting.

Screenshots (if applicable)

Add screenshots here if you took any of the validation/error in action.

Notes

  • The validation is implemented in the UI, but you may want to consider adding backend validation as well for complete safety.
  • Please let me know if any further changes are required!

Fixes #1465

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.

program name allows spaces in app designer

1 participant