Good morning:
Can someone please help me… ?
This is my first JavaScript try (I know nothing about any scripting language).
Thanks to a few books, I have the scripts below and I will like the form check/do the following when the submit button is clicked:
1. Automatically write the current date in the date field (DateToday).2. Check to make sure the field EmpPassNo does not have more than 6 characters, the very first character can be alpha or a zero but the last five has to be numeric.3. Check the email to make sure it is a valid email format.4. Switch name entered to last name first and capitalize.5. Format the phone number fields to (###) ###-####.6. Zip code can have only 5 digits.7. Must check either YES or NO and the fields can not be null.8. Check all other fields making sure they are not nulls.
The problem is that I run into the following errors:
●A runtime error has occurred. Line 65 Error: expected “;”
●The form is not checking for the conditions set above (tested it with wrong info).
BTW, I am using FrontPage.
The script is a word document attachment because it is long……..
Thanks in advance for your help.
Christiana
[upl-file uuid=ea81f934-d2a3-4876-90c7-7d0445c595a0 size=58kB]JacaScript.doc