Form Validation Question

Results 1 to 2 of 2

Thread: Form Validation Question

  1. #1
    Join Date
    Dec 1969

    Default Form Validation Question

    I have a button on my main form that saves the record. The record consists of data in the main form and data in a subform. I need to run a function that checks to see if a field in the main form contains a certain value and if that value is equal to "Insurable", alert the user if the data in the Contents field of any of the records in the subform is alphanumeric. <BR><BR>How can I accomplish this?

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Validation Question

    You can do server side validation or client side validation. Its better to do server validation... but client validation with javascript is nice because you dont have to do a round trip to the server. With client side validation create a javascript function called VerifyForm(). Then in your form put onSubmit="return VerifyForm()". VerifyForm() will return true if the contents the user provided are true or false if not which will cause the form not to submit. With server side you gotta just verify the values within asp. I will leave the options up to you. Sounds like you may need to read up on javascript

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts