If I have a 3-character comb for Area Code, how do I get the cursor to automatically advance to the next field after user types the third number? (LC ES2 9.0) Thanks! ~Carol
Solved! Go to Solution.
Views
Replies
Total Likes
On the change event of the area code field you can use javascript code like this:
var tempStr = xfa.event.newText
if (tempStr.length == 3){
xfa.host.setFocus("TextField2")
}
The tempStr variable wil contain the input that the user selects. Assuming that the are code is 3 chars then when they enter 3 chars the the focus will change the the named field in the setFocus command (in my case TextField2).
Paul
Views
Replies
Total Likes
On the change event of the area code field you can use javascript code like this:
var tempStr = xfa.event.newText
if (tempStr.length == 3){
xfa.host.setFocus("TextField2")
}
The tempStr variable wil contain the input that the user selects. Assuming that the are code is 3 chars then when they enter 3 chars the the focus will change the the named field in the setFocus command (in my case TextField2).
Paul
Views
Replies
Total Likes
Thanks, Paul. Works like a charm. Appreciate your comback. ~Carol
Views
Replies
Total Likes