Project

General

Profile

BUG #3279

Updated by Md. Abdul Hamid 7 months ago

On the **Contact Us** form, the input fields are not validated properly. Users can enter invalid characters such as numbers, symbols, or random strings in fields that should only accept specific types of input. 

 ### Affected Fields 
 - **Your Name** → should accept only alphabets (with space).   
 - **E-mail Address** → should only allow valid email formats (e.g., name@domain.com).   
 - **City** → should accept only alphabets.   
 - **Nearest Port** → should accept only alphabets.   
 - **Country** → should accept only alphabets.   
 - **Mobile No.** → should only accept numeric values with optional “+” for country code.   
 - **Your Address** → should allow text, numbers, and limited special characters (e.g., `/ , . -`).   
 - **Your Message** → should allow free text (letters, numbers, symbols). 

 ### Steps to Reproduce 
 1. Navigate to the **Contact Us** form.   
 2. Enter invalid data (e.g., symbols in “Name”, text in “Mobile No.”, invalid email format in “Email Address”).   
 3. Submit the form.   

 ### Expected Result 
 - Each field should enforce proper input validation rules.   
 - User should see error messages for invalid entries.   

 ### Actual Result 
 - The form accepts any type of input without validation. 
 ### Files 
 [Video](https://drive.google.com/file/d/11kjrRFMqMY9dkd4aURfnCA4nXw4BbZCh/view?usp=sharing) [Vedio](https://drive.google.com/file/d/11kjrRFMqMY9dkd4aURfnCA4nXw4BbZCh/view?usp=sharing)

Back