US17-Implement data Validation For Form Fields.
Description
As a developer, I want to include form validation to accept accurate data from the user to create a database that features integrity, accuracy and meaningful information when the data is retrieved.
Acceptance Criteria
- Team reviewed and approved validation criteria
- Team reviewed and approved forms validated
Tasks
- Team approve -- 30 mins -- Team
- Plan Validation Criteria -- 30 mins -- Ahmad
- Compose Validation Code -- 5 Hours -- Ahmad
- Test Code -- 60 mins -- Ahmad
Notes
Sample Code and Images:
function validateForm()
{
var x=document.forms["myForm"]["firstname"].value;
if (x==null || x=="")
{
alert("First name must be filled out");
return false;
}
}