?
Solved

Limiting number of characters

Posted on 2003-03-25
8
Medium Priority
?
272 Views
Last Modified: 2013-12-18
Hello, There's on a Input Validation Control some way to limiting the number of characters input on a field.

Thx a lot,
0
Comment
Question by:jcgt71
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 7

Expert Comment

by:scottrma
ID: 8204616
@If(@Length(FieldName) > 25; @Failure("This field cannot be longer than 25 characters."; @Success)

Regards,

Scott
0
 
LVL 9

Accepted Solution

by:
Arunkumar earned 100 total points
ID: 8205353
I would add something to this code...

@If(@Length(@Trim(@Text(FieldName))) > 25; @Failure("This field cannot be longer than 25 characters."; @Success)

-Arun.
0
 

Author Comment

by:jcgt71
ID: 8209701
Thx, Arunkumar, this works, because the @Text function.

Thanks again
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:Arunkumar
ID: 8210066
But why a "B" grade ?
0
 

Author Comment

by:jcgt71
ID: 8211875
Oops, I'm sorry, but I'm relatively new using Experts-Exchange Site and I don't know that Good means a B Grade,
Really I give you an A Grade, however I think that now I can't change it, I kwow now for the next time.
Sorry again, and Regards.
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 8212129
No problem I will request an "A" from the community support if thats okay with you.

-Arun.
0
 

Expert Comment

by:Banath
ID: 8212319
Grade changed to A

Banath
EE Moderator
0
 

Expert Comment

by:tashsmith
ID: 13445848
Hi Guys,

When trying to use the follwoing formula

@If(@Length(FieldName) > 25; @Failure("This field cannot be longer than 25 characters."; @Success)

I get 'Too many arguments for @Function: ')'

cheers
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question