cancel
Showing results for 
Search instead for 
Did you mean: 

Preventing Word Wrap

former_member531036
Participant
0 Kudos

I have a text field with 3 floating fields which contains the values: "200", "KG / ", "DR". The end result would be: 200 KG / DR. This works fine in English, but we're finding that in some other languages (Japanese for example) the last word is wrapping to the next line. I don't believe that it's being hyphenated as there's no '-'. The last word has 3 characters, 2 of the characters are printing on one line and the 3rd character is wrapping below it because there's not enough space:

What I would really like to happen is to have the whole word on the second line if there's not enough space. I've tried removing hyphenation on the form and that did not work. If I decrease the font by .5 it will fit (or I could make the column a bit wider), which will solve the issue for this example, but not for any potential issues in the future.

Thanks!

Julie

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Julie,

Interesting issue. What you would like to happen is actually the expected behavior.

What you see is the behavior when the text cannot be wrapped and the column of a table is not wide enough for it.

More info on the form design and the data being used for rendering the form would be needed to analyze.

Best,

Juergen

former_member531036
Participant
0 Kudos

Hi Juergen,

If this is the behavior when text cannot be wrapped, I wonder if it has to do with the fact that the floating fields are contained within a text box, which does not have a check box to allow multiple lines. The only options that I see are Allow Page Breaks within Content and Keep with Next. I've tried checking the Multiple Lines checkbox for the floating fields, but that doesn't seem to do anything. It appears as though the text box is what controls how the fields look/behave. Is there another way to add floating fields to a form? We need to use the floating fields to give the appearance of one continuous text. Here is a screen shot of the form hierarchy:

I have highlighted the fields with the issue. The QTY_KG = '200', UOM_KG = 'KG' (the '/' is within the CONVERTED text box) and the UOM_BASE = the Japanese characters. The text is right aligned. Is this enough information?  I wasn't sure what you needed for "the data being used for rendering the form".

Thanks!

Julie

former_member531036
Participant
0 Kudos

Hi Juergen,

I found out how to handle this. I used 3 separate text boxes for the floating fields instead of just one. I made each box 0 mm wide and ticked Expand to Fit. I then wrapped the 3 text boxes into a subform and made the subform flowed Western, right aligned. Because of the 0 mm width it gives the illusion of being one string, yet wraps to the second line if it will not all fit on one line.

Thanks for your help.

Julie

Former Member
0 Kudos

Hi Julie,

Great that you've found the issue. I tried to reproduce your issue but wasn't able to.

Juergen

Answers (0)