Trigger action based upon text field length

I would like to trigger an action when the length of the value in a text field reaches a certain length. I thought about adding a page state integer type variable and adding an action that would set the value of that variable to the field input length with the on change event but I don't see a way to get the current length. I assume this will require a custom function. Any ideas?

5 replies