Monday, April 13, 2009

Livecycle: maxChars

This was strangely difficult to figure out, it took quite a bit of tracking down to figure out how to accomplish.

I've been trying to figure out to dynamically set the maximum number of characters in a text field and I was misled by a whole bunch of info. But basically heres the line of code;

field.value.text.maxChars = "x";

where x is an integer representing the number of characters.

Simple enough, eh?

No comments: