I know that it is possible to use a character limit but most users prefer a word limit as they feel it is a more meaningful restriction rather than punishing those that use long words!
Is there some way to apply a word count limit on a text field in Designer?
Views
Replies
Total Likes
Not that I am aware of.
Paul
Views
Replies
Total Likes
You can count the number of words using javascript:
http://www.mediacollege.com/internet/javascript/text/count-words.html
--Elaine
Hi,
I am flying by the seat of my pants on this...
If you converted the value of the textField to a string and then calculated the length of the string (.length) and then set the width of the textField to a multiple of the length (,w). The size of the multiple would depend on the font style and size, say 2mm (0.0787in) per character.
Probably more trouble than it is worth...
N.
Views
Replies
Total Likes
Thanks Elaine, I did find a a few scripts like this online but none of them were geared toward people using LCD to create forms. The one you've posted is the simplest one I've seen and I've adapted the script form the example you provided but have had a blank on how to call the script object using a click event on a button.
So far I have
function countWords()
{
form1.test.countText.rawValue = form1.test.enterText.rawValue.split(' ').length;
}
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies