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

    Javascript<BR><BR>&#060;script language="JavaScript"&#062;<BR>function CheckValue(){<BR> if (document.[main form].[input name].value = "Insurable") {<BR> alert(&#039;bla bla&#039;)<BR> }<BR>}<BR>&#060;/script&#062;<BR><BR><BR>I have no idea how you want to fire the function, that&#039;s up to you.<BR><BR>good luck,<BR>jc<BR>

Posting Permissions

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