Project

General

Profile

Actions

BUG #3279

open

[SQA] Add Validation on the fields of contact us from

Added by Md. Abdul Hamid 7 months ago. Updated 6 months ago.

Status:
Complete
Priority:
Medium
Target version:
Start date:
09/18/2025
Due date:
% Done:

100%

Estimated time:

Description

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., ).
  • 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

Actions

Also available in: Atom PDF