You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
We addad a form at the left of . The form works OK except the validation. If you hit Enter without entering a name and email the form still goes thru. The validation works OK when its not a part of the template, but when added to ste_layout.txt the validation does not work. Any suggestions? THANKS!!!
Offline
The onsubmit property is calling a javascript function called FrontPage_Form1_Validator. That function doesn't seem to exist anywhere in the source code. You have a function called EmailValid() - did you maybe get a name mixed up? Or perhaps you forgot to include the javascript in the layout?
Offline
Rachael,
Thanks for your help! I must be missing something! Do you have or can you recommend a simple script that will validate Name and Email fields? For some reason FrontPage and JBots form validation will not work in this script!!!
Offline
You're welcome. What seems to be missing is that the script itself is not included on your page anywhere. It could be that FrontPage put in in the head section of the page in the editior; but you didn't use the head section from FrontPage - it came from the ste_layout.txt in CCP. So maybe all you need is to copy the script into your site layout. I'm no Javascript expert by any means, but if you Google "javascript email validation script", you'll get no shortage of results.
Good luck!
Offline