Does workflow have a builtin component for specifying a character limit in a multiline text box?
Agree with what africo says. Easiest way is to use an onblur event (when textbox loses focus) to make the current value a substring of the existing value (first character to the maxlength).
To get fancier, and reinforce to the user that they've actually hit the maxlength, you'd probably use an onkey(press) event (key down probably) where you check the value, and if they've hit the maxlength, you escape out and not capture the key.
Thanks i figured i would have to go the JS route, for future searches here is what i've done.
on the Form added the following snippet to the script section.
Then used keyup and keydown events on the textbox to call the function.
Added another textbox ID'd as countdown to decrement the count (visually).
function limitText(limitField, limitCount, limitNum)
if (limitField.value.length > limitNum)
limitField.value = limitField.value.substring(0, limitNum);
limitCount.value = limitNum - limitField.value.length;
keep in mind that onkeyup and onkeydown do not register copy/paste from the context menu. if you find that you need to address that problem, try using oninput instead. it's more work, but should be more comprehensive.
oh nice, thanks for that tip!