The form has phone number fields, they are not actual special formats for phone numbers, they did not do that to begin with. So the phone number of form will end up being entered into two different fields one numeric 3 digit and (the next in tab order) is a text field with validation text{999-9999} . What user is asking for now is this sort of flow:
I can get the ‘full’ event to move focus to the next field but that happens only when the forth number is keyed, but that number is not passed to the text field. Could not find a way of ‘carrying’ that number forward and placing the cursor to its right.
So I was looking at the ‘Change’ event, to set up an IF like this:
if (this.length = 3 ) then xfa.host.setfocus("TX17") ;
from what I can tell this does not get a length until TAB or ENTER is pressed. Can anyone help?
Views
Replies
Total Likes
Hi,
Instead of writing Script in Change event, write it in full event.
Beofre that make the Field, limit length - Max Chars 3. and in full event write
xfa.host.setfocus(TX17);
Here's a very nice example for tabbing fields.
http://blogs.adobe.com/formfeed/2009/04/field_tab_on_full.html
The set focus to move to the field will work, and I set that TXT17.rawValue to the last character of xfa.event.fullText to populate the TXT17 field. But when the focus is set to it that text is selected. So when user presses the next number it will replace what is selected. I can’t find a way setting focus to the field and placing the cursor at end of the field.
radzmar example works fine if pasting text but does the same thing if text is typed.
Views
Replies
Total Likes
You can fix this behavior with a script.
It will continue the entered text at the end of the fields current value, even the whole text is highlighted.
Put it into the change:Event.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies