Enabling client-side validation on forms
Client-side validation is one of the most important things in each and every web or mobile application; it helps to validate the data on the client side before a request is sent to the server. In this section, we'll look at how to validate a form on the client side using JavaScript.
In this section, we'll create a web form to onboard a new employee and will apply client-side validation before we save the data in a Business Object.
The following are the high-level steps to execute this use case:
- Create a web form.
- Create JavaScript to validate the web form.
- Implement the logic to validate the form and insert data into the Business Object.
We'll look at the preceding steps in detail in the upcoming sections.
Creating a new web form
The following are the steps to create a new web form:
- Create a new page with the
main-onboard-employee
Page ID under the chapter7 web application. - Create...