Prepare a contact form and validate the data in java

Assignment Help JAVA Programming
Reference no: EM13981879

Need a contact form with the following:

A form for new clients to fill out and submit The form must contain the following fields:

o First Name

o Last Name

o Street Address

o City

o State

o Zip Code

o Message A button labeled "Submit" When the button is clicked, the data in the form should be validated.

Validation should confirm that all input meets the following requirements:

o All fields are required and therefore must contain some data.

o The data in the First Name field must be greater than 1 character and less than 20.

o The data in the Last Name field must be greater than or equal to three characters, and less than 20.

o The data in the State field must be exactly two characters.

If the form contains any invalid data based on the rules defined above, a "glyphicon-remove" icon should be displayed next to the field (HINT: By adding/removing one more classes to/from a span via a JavaScript, glyphicons can toggle on/off dynamically) and an alert message should be displayed instructing the user to fix the error.

o NOTE: If invalid data is corrected, the glyphicon-remove should be removed.

If all fields are validated as containing correct input, a confirm window should be displayed.

o The confirm window should include the following content: The content from all fields A request for the user to confirm the input with OK, or CANCEL to edit

o If the user selects OK in the confirm window: An alert window should be displayed indicating that the message was sent, along with a date/time stamp of the current time. The form should be reset (all text should be cleared and no glyphicons should be visible).

o If the user selected CANCEL in the confirm window: The confirm window should close and all user data should remain in the form. Format for submission: Need HTML file linked to JavaScript files.

Verified Expert

The project is about the form validation which is part of user registration. The user details were fetched as part of the registration form which is validated against some constraints. If all the fields were correct then the user will be allowed to submit the input, followed by a confirmation dialog. Once it is confirmed, the details will be saved to database.

Reference no: EM13981879

Questions Cloud

What causes migraine headache : Evaluate the causes of stroke. Discuss the differences between transient ischemic attack and cerebrovascular accidents (CVA). Discuss the types, warning signals, and treatment of CVA.
What is morality : What is morality? Morality can be defined as the principles concerning whether an action is right or wrong, or, good or bad. It is important to note that, morality can be socially or even culturally objective\
Probability of acceptance for defective percentage : A shipment of 100 pins contains some defectives. To decide whether to accept the shipment, the consumer follows a sampling plan where 15 items are cho- sen at random from the sample and tested. If the number of defectives in the sample is at ..
Calculate the angular momentum of the system : A particle of mass 0.3kg is attached to a 100cm ruler of mass 0.2kg at the 100cm mark. the meter stivk rotates on a horizontal smooth table with an angular velocity of 4rad/sec. Calculate the angular momentum of the system if the stick is pivoted ..
Prepare a contact form and validate the data in java : Prepare a contact form and validate the data in JAVA - Validation should confirm that all input meets the requirements
Probability of acceptance for defective percentage : Using the Data|Table command, tabulate the probability of acceptance for defective percentage ranging from 0% to 15% in steps of 1%.
Shape of binomial distribution for various combinations : Look at the shape of the binomial distribution for various combinations of n and p. Speci?cally, let n = 5 and try p = 0.2, 0.5, and 0.8. Repeat the same for other values of n. Can you say something about how the skewness of the distribution is affec..
Making comparisons with competitors and industry norms : The conclusion section should draw together your findings in order to make arecommendation to a potential investor in the company's shares.
Proportion of computers will fail during warranty period : a. What is the probability that a computer will fail within 12 months? b. If the company gives a warranty period of 12 months, what proportion of computers will fail during the warranty period?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd