get Alert when max characters reached
I have set a character limit for a Textfield.
i try to show the remaining characters without success.
alternatively i try to show an error message when the limit is reached
var laenge = this.getField("Overline").value;
event.rc = true;
if (laenge > 10)
{
app.alert("Max. 40 characters incl. spaces");
event.rc = false;
}
else
{
event.target.textColor = color.black;
}
Is there a way to display the remaining characters?
if not, what am I doing wrong with the code here?
