View Full Version : Required field in form

Finland Blue
12-01-2005, 04:53 AM
I have made a Form which submits results to me in an email.

I need each user to read one paragraph of text, then tick a box to show they have read and agree to it. If the user does NOT tick the box, I want an error message to show. I have tried the "validate form" techniques, but it appears they only apply to "text" fields, and not check boxes - can anyone advise me what I should do?


12-01-2005, 07:07 AM
yaromat plugin it will do that. Down load the plugin and install with extension manager.

it should work fine.


12-01-2005, 07:11 AM
By the way heres the link. Download the checkform plugin.

http://www.yaromat.com/dw/index.php?t=All&r=All ('http://www.yaromat.com/dw/index.php?t=All&r=All')

good luck, Buddy.


Finland Blue
12-01-2005, 07:53 AM
Brilliant - it worked perfectly - thanks for the tip! :D

12-01-2005, 08:09 AM
i have also used that extension but find it writes tons of unessesary code.
Form validation is quite easy using javascript


a = document.getElementById('formfield1');

if (a.value == '')
{alert("your form field is empty");}

if you feel that the extension is what you want then thats fine but if you want to streamline it then write your own

if you need help just come back and post the names of your fields you want to validate