Hello!
Is there a way of activating an automatic tab behaviour when the user reaches the end of a field with limited character number?
I'd like the cursor to jump to the next field in tab order automatically.
Possible?
Thank you for any hints!
Marcos
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into:
var fullCount = 3
var currentString = xfa.event.newText
if(Len(currentString) >= fullCount)then
xfa.host.setFocus("TextField2")
endif
Or, if you prefer javaScript:
var fullCount = 3;
var currentString = xfa.event.newText;
if(currentString.length >= fullCount){
xfa.host.setFocus("TextField2");
}
These work very smoothly.
Hope this helps!
Stephen
Views
Replies
Total Likes
Hi,
What if you tried something like the following example? This works using formCalc on the change event for the field the user is currently typing into:
var fullCount = 3
var currentString = xfa.event.newText
if(Len(currentString) >= fullCount)then
xfa.host.setFocus("TextField2")
endif
Or, if you prefer javaScript:
var fullCount = 3;
var currentString = xfa.event.newText;
if(currentString.length >= fullCount){
xfa.host.setFocus("TextField2");
}
These work very smoothly.
Hope this helps!
Stephen
Views
Replies
Total Likes
Here's another example you can work with.
http://blogs.adobe.com/formfeed/2009/04/field_tab_on_full.html
Views
Replies
Total Likes
Hey Kingphysh!
This one worked fine with text, number and data fields (so far I've tested with these) and solves my problem!
Thank you!
Marcos
Views
Replies
Total Likes
Hey Radzmar!
Works nice with text fields!
Thanks!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies