Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Wrapping multiple text lines

Avatar

23-03-2009

This may be difficult to explain, but I am not seeming to find the exact wording in my searches so I am going to ask here...



I have several lines of text boxes at the end of a form, and rather than making it all one big block of text and wrapping text within the box, there are several individual lines of text, and I would like to limit the length of each line to the display, and then wrap it to the next text line if it is too long.



Thanks for the help.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

23-03-2009

How is the data getting into the fieds in the 1st place ...is a user typing it in?

Avatar

23-03-2009

Yes, it is a form. the end of the form looks similar to:



Describe this thing: ________________________________________________

_____________________________________________________________________

_____________________________________________________________________

_____________________________________________________________________

_____________________________________________________________________

_____________________________________________________________________



so in order to follow the lines (rather than a text block that wrapped and could be offset from the lines on the original application), each one became a new field. I am trying to figure a way, like in illustrator, to have two or more boxes linked together so when the user finishes the first line it automatically goes to the next, and so on till the end line where it just wont let them go on unless they tab to the next field.

Avatar

Avatar
Validate 1
Level 9
Steve_L_Walker
Level 9

Likes

197 likes

Total Posts

1,435 posts

Correct Reply

212 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 9
Steve_L_Walker
Level 9

Likes

197 likes

Total Posts

1,435 posts

Correct Reply

212 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Steve_L_Walker
Level 9

23-03-2009

- add a text field (I will call it textField1)

- change the Appearance to Underlined

- check the Field attribute 'Limit length to visible area'

- add multiple text fields (copy-paste or by using Copy Multiple from the tool bar) where each instance has the Field attribute 'Limit length to visible area'

- on textField1, go to the Full event and add client-side JavaScript



xfa.host.setFocus("textField2");



- for each successive text field, go to the Full event and add client-side JavaScript so focus is set to the next text field

Avatar

23-03-2009

That makes sense, but i am not sure what you mean by Full event. I have renamed the fields to be a group by themselves, that are listed lines 0-6, but where do i find the Full event in relation to a selected text field?



Sorry if this is a dumb question.

Avatar

Avatar
Validate 1
Level 9
Steve_L_Walker
Level 9

Likes

197 likes

Total Posts

1,435 posts

Correct Reply

212 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 9
Steve_L_Walker
Level 9

Likes

197 likes

Total Posts

1,435 posts

Correct Reply

212 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Steve_L_Walker
Level 9

23-03-2009

Ah. I think you are referring to Text objects (used for print and fill forms) and I am referring to TextField objects (used for fill and print forms). Text objects do not have events, whereas TextField objects have a complete event life cycle.

Avatar

23-03-2009

S L



It does list the type of object as a Text Field... at least i believe it does. I select the object, and open the Object - Field Tab and the Type is Text Field. I have tab options for Value and Binding for this object, but nothing that says anything like "event".



Do you think I am missing it or is something wrong with my field?

Avatar

Avatar
Validate 1
Level 9
Steve_L_Walker
Level 9

Likes

197 likes

Total Posts

1,435 posts

Correct Reply

212 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 9
Steve_L_Walker
Level 9

Likes

197 likes

Total Posts

1,435 posts

Correct Reply

212 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Steve_L_Walker
Level 9

23-03-2009

Could you send the form to stwalker.adobe@gmail.com? I will take a look.

Avatar

23-03-2009

S L



I sent it. Thanks for looking at it. I think it is correct in the types of fields, but maybe I am mistaken.