Severity:
Medium
Context:
A form contains a required dropdown field (e.g., “Country”). The placeholder/default option (âSelect your countryâ) is selectable, but users might not actually choose a real value.
Steps to Reproduce:
- Â Go to the form with a required dropdown field (e.g., “Country”).
- Do not change the dropdown (leave default option like “Select your country”).
- Click Submit.
Expected Result:
- Validation error appears:
âPlease select your country.â
Actual Result:
- Form submits successfully.
- The default option (placeholder) gets interpreted as a real value.
Root Cause:
The placeholder option like “Select your country” has an actual value in HTML (e.g., “default” or even a blank “”).
If the backend or validation logic doesnât explicitly reject it, it passes.
Impact:
- Bad data sent to server
- Inaccurate analytics
- Poor UX
- Harder to segment or personalize content based on country
Suggested Fix:
Add disabled and selected attributes to the placeholder option:
<option value=”” disabled selected>Select your country</option>
Validate that the chosen value â “”.
Lesson learnt:
âJust because something is selected doesnât mean it was chosenâ
Letâs connect! I share common bugs, solutions, and QA tips regularly.