Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Wrap text to next field without words getting cut off

Avatar

Level 4

Hi,  I have 3 textfields that will tab to the next field when full

//will tab to TextField13 once field is at its limit
xfa.host.setFocus(TextField13);

 

The problem is when text is at the end of the field and the word is too long, the word will get cut off.  Is there a way to prevent this from happening - have the complete word go to the next field?  Also, is there a way to delete text using the backspace button after the text goes to the next line. Meaning if my text tabs to the next field, I want to backspace to the previous field?

 

meem23_1-1585656179103.png

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

There's a nice solution for this screnario available.

All details here: https://blogs.adobe.com/formfeed/2009/04/field_tab_on_full.html

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

There's a nice solution for this screnario available.

All details here: https://blogs.adobe.com/formfeed/2009/04/field_tab_on_full.html

Avatar

Level 4

Thanks for your response. When I type in Field1 it will overflow to the next field, however, the word that overflows gets deleted when I keep typing.  I typed "If I keep typing in this field".  "this" overflows and when I continue to type "field", "this" gets deleted and I'm left with "field".  See 2 screenshots below.

 

meem23_0-1585743398470.png

meem23_1-1585743443231.png

 

 

Avatar

Level 4

Hello,  Is there a solution to the issue I'm having when the word that overflows gets deleted when I keep typing?