[QUOTE=ashleymckay;51885]I’m trying to prototype an input field with a counter similar to that on Twitter that counts down the remaining characters available. However, when there are 30 characters remaining, the counter should turn from Grey to Black and when there are 10 characters remaining, the counter should turn from Black to Red.
I had it working and counting down to zero beautifully…until I added the different states of the dynamic panel for the character counter (Grey, Black & Red). Now, the counter stops at 30 when it turns black.
I’ve attached the file below.
Any suggestions? I’m totally stuck.
Thanks![/QUOTE]
Took a look, question: is there a reason that you separated out OnTextChange vs OnKeyDown? It seems to work when I out everything OnTextChange. Demo
I didn’t include any of the other functionality like “back” or “delete”, but I’m not sure what that does; IMO it works fine when you just trigger every time the text changes. Axure RP file attached.
Wireframe_CharacterCounts.rp (56.3 KB)