Skip to content

Validation Missing in Profile Section Form (First Name and Last Name) #1202

Open
@dhuruvandb

Description

@dhuruvandb

Description:

The First Name and Last Name fields in the Profile Section form are not properly validating inputs. The following issues have been observed:

-     No validation for invalid characters: The form accepts all types of characters (including special characters, numbers, etc.) without throwing any validation errors.
-     Empty input fields: When the First Name and Last Name fields are left empty and the form is submitted, it doesn't throw any error. Instead, the previous input values are replaced with the empty input, and the user can submit the form without any errors.
-     No error on invalid input: The form does not display any error messages when invalid characters (such as numbers or special characters) are entered in the First Name and Last Name fields.

Steps to Reproduce the Behavior:

    1.     Navigate to Profile:
    
            -         Click on the profile icon located at the top right corner.
            -         You should see a card displaying the First Name, Last Name, and Email. Click that
           
    2.     Empty Input Issue:
    
              -         Click the Edit button to make changes to the profile fields.
              -         Clear the First Name and Last Name fields (leave them empty).
              -         You will see validation warnings for the empty fields.
              -         Click the Save button. Despite the warnings, the form does not prevent the submission, and the fields remain empty without any changes being saved.
    
    3.     Validation Missing:
    
            -         Click the Edit button again and enter alphanumeric or special characters in the First Name and Last Name fields.
            -         There are no validation warnings or errors shown for the invalid characters.
            -         Click the Save button. The changes are successfully saved, even though invalid characters were entered.

Screen Recorded Video for your Reference is attached below

Screen.Recording.2024-12-16.170157.mp4

Device Specifications:

  • OS: Windows 11
  • Browser:Firefox
  • Version: 133.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions