Jump to content

Recommended Posts

Hi there,

 

At present i'm using this to check for blank fields:

 

<script language="JavaScript">
var frmvalidator  = new Validator("contact_form");
frmvalidator.EnableOnPageErrorDisplaySingleBox();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("name","req","You have not entered a name."); 
frmvalidator.addValidation("email","req","You must supply an email address."); 
frmvalidator.addValidation("message","req","You have not entered a message.");
frmvalidator.addValidation("email","email","That email address you have supplied is not valid."); 
frmvalidator.addValidation("sixletterscode","req","Please enter the four characters into the specified box.");
</script>

 

which relates too:

 

<form method="POST" name="contact_form" action="/?captcha_fail">

 

At present, that puts the errors in one block like:

 

    You have not entered a name.
    You must supply an email address.
    You have not entered a message.
    Please enter the four characters into the specified box.

 

And is displayed by:

 

<div id='contact_form_errorloc' class='err'></div>

 

Basically, I want to seperate the prompts under each field instead of all clumped together.

 

Many thanks

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.