02 Feb Form Field Validation
Unit 04 Assignment 1
Form Field Validation and Error Messages
Overview
You have created a basic form and added interactivity to images using JavaScript. Now it is time to validate information entered into your form fields. You will use the “registration.html” file found in your Zip file. You will see that the page has a form with the following fields to allow users to register for an account. The items in parentheses are defined formatting instructions to be observed for each field.
Username* (must only contain letters and numbers)
Password* (minimum of 8 characters)
PasswordVerify* (minimum of 8 characters, must match password)
FirstName* (text string)
LastName* (text string)
Email (uses [email protected].xxx format)
PhoneNumber (uses (xxx) xxx-xxxx format)
SignUpNewsletter (radio box for yes/no)
Tips:
JavaScript is case sensitive, so a variable named myVar is different from MyVar and myvar.
Perform your form validation testing as you go rather than all at the end. It will be much easier to fix the error if you have a smaller sequence of code to review.
Directions
Read the assignment overview.
Use the registration.html file to add functionality to the form found on the page. The JavaScript that you write should validate each field and, if errors are made, display appropriate error messages that direct the user to complete the form properly. Once the form is completed, your script should open the confirmation page (confirmation.php).
Note: The input fields in the form with an asterisk are required fields.
Make sure to do the following:
Write JavaScript that defines that a field is required and generates an appropriate error message if the field has not been completed.
Write JavaScript to validate all input fields per the formatting definitions that the field values should be checked against (found in the overview) after each field.
Write JavaScript that displays an appropriate error correction message (next to the field) in the event a form entry error has been made.
Write a JavaScript that will default the user’s cursor to the first erroneous input field in the event that there is an input error.
Create a submit button that executes the validation when submitted.
Once completed, view your pages in each of your two selected Web browsers to see if the content renders appropriately and consistently within each. Next, verify that your code is error free using the appropriate browser specific development tool found in the Resources.
Take a screen capture of each of your validation results and save it for submission.
Submission Requirements
Upload your Web site files to your Web host.
Submit your work in the courseroom using a single Zip file containing the following:
Your entire Web site and all associated files.
A Word document with:
The URL to your Web site so the instructor can view your site on a live host.
A screen capture of each of your two validations that you completed using the developer tools found in the Resources.
Resources
Form Field Validation and Error Messages Scoring Guide.
Microsoft Edge Dev Tools.
Safari Web Inspector Guide.
Chrome DevTools.
IT3215 Web Site Zip Files.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.