I want to place the javascript in the change field, correct?
I have tried
var f1 = this.getField();
if (f1.length == 1){
f1 = _2_3.getField();
}
_2_3 is the name of the next text box
this still does not work
Any help?
Solved! Go to Solution.
Views
Replies
Total Likes
If you are building the form using LiveCycle Designer then that script is using the wrong model. If you are expecting to autotab to the next field when the current field is full here is one way to do it. You coudl trap the code that goes into a field as it is being typed. You can test its length and if it is the length you are looking for then you can move the cursor.....something like this:
var temp = xfa.event.newText;
if (temp.length == 3){
xfa.host.setFocus("TextField2")
}
Hope that helps
Paul
Views
Replies
Total Likes
Are you building the form with LiveCycle Designer or Acrobat?
The code you pasted will not move the cursor .....what is it you are trying to do?
Paul
Views
Replies
Total Likes
I have adobe acrobat pro and livecycle. I have been trying to use either. I know java and C++ but have never used javascript.
I would like the user of the form to fill the field out with one character and it auto tab to the next field.
The code I put was based on examples I had found online. I have limited knowledge about the javascript methods.
Views
Replies
Total Likes
If you are building the form using LiveCycle Designer then that script is using the wrong model. If you are expecting to autotab to the next field when the current field is full here is one way to do it. You coudl trap the code that goes into a field as it is being typed. You can test its length and if it is the length you are looking for then you can move the cursor.....something like this:
var temp = xfa.event.newText;
if (temp.length == 3){
xfa.host.setFocus("TextField2")
}
Hope that helps
Paul
Views
Replies
Total Likes
that works. Thanks!
Views
Replies
Total Likes
Lets say I want to auto tab when a field that holds 40 char is full to the next field and I want to take a partial word to the next field as a continuation, so as to not break a word in half? Is this possible first of all and if so, what might the java code be? I am using Adobe Acrobat.
Thanks,
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies