• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 39. Creating Web Forms in GoLive > About Validating form Data

About Validating form Data

To validate form data to determine whether all required fields have been entered, you need to perform a procedure known as forms validation. It can be done on the server side, where an application running on your web server checks the submitted data for validity and returns an error page if all is not well. However, it's often easier to run this procedure on the client side, using JavaScript forms validation.

When the Submit button is clicked, a JavaScript will first execute to check the contents of the form fields against criteria that you've specified for each field. If any required fields are empty, or any fields contain data not formatted correctly, a friendly error dialog appears, and the form is not submitted. This ensures that any form that is submitted is full and correct. Use GoLive's Action palette to create your own form validation:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint