[Logo]
Forums Register Login
Form Validation Help Needed Please
I am knew here so hi to everyone, I have been told by a friend that this site is particularly helpful so here goes.

I have a form that i want to ensure is filled out correctly before the user is able to proceed. I am also advised that Javascript is the easiest way to do this, however i have no idea how to implememnt it.

http://chimp.cc/start.htm

If the user fails to fill out the terms and conditions box with a "Yes"when the user clicks submit, i want a message to pop up to tell them to complete it.

and to return the user to that field for completion.

I honestly have no idea how to do this, can someone please help me.

Cheers

Andy
Hi,
Do a script validation in the form as below. Call the below function while clicking the submit button


Hope this helps
Something like this:



However, instead of having a textbox asking for the user to type in Yes, ideally a radio button is used for the same.
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter


This thread has been viewed 1001 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 22, 2018 17:14:17.