justinmind-logo
 
Upvote 1

How do I shift focus to another field on field character limit

Answered Alan 5 years ago

I'm trying to add a condition that will allow me to trigger an event (focus on the next field) when a user has input the 2 digit limit to the entry field. I can't seem to work this out - can anyone help please?

The example shows that when someone has entered a value of say '16', the 'focus on' event is triggered to the month field.


Thanks

Replies (2)
photo
2

Just create a condition that detects when the count of characters in the input field is 2. Check out the attached prototype.

photo
1

Thanks Danielle - that really helps. I was using the wrong function in the condition.

Leave a Comment
 
Attach a file