Validation for string length

Sep 28, 2012 at 4:19 AM

How can i validate the string lenght. thanks

Coordinator
Oct 8, 2012 at 8:06 AM

Does something like this help?

<table>
  <tr>
    <td>New Password:</td>
    <td><input id="newpassword" type="password" validate="customValidatorGroupName" customFn="this.length >= 6;" custom="Invalid password, the password must be 6 characters or longer." /></td>
  </tr>
  <tr>
    <td></td>
    <td><input type="submit" value="Submit" onclick="return validate('customValidatorGroupName');"></td>
  </tr>
</table>

Oct 9, 2012 at 1:36 AM
Hi mcm_ham
Thank you for your kindness it solve my problem.. this is great code for client side validation.

Thanks
Moises B. Bas


From: [email removed]
To: [email removed]
Date: Mon, 8 Oct 2012 01:06:13 -0700
Subject: Re: Validation for string length [validator:397255]

From: mcm_ham
Does something like this help?

New Password:<input id="newpassword" type="password" validate="customValidatorGroupName" customFn="this.length >= 6;" custom="Invalid password, the password must be 6 characters or longer." />
<input type="submit" value="Submit" onclick="return validate('customValidatorGroupName');">

Read the full discussion online.
To add a post to this discussion, reply to this email (validator@discussions.codeplex.com)
To start a new discussion for this project, email validator@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com