PDA

View Full Version : Force a line break


MikeVM
November 21st, 2008, 11:24 AM
I almost new to Java script and need help in maybe very simple problem.
I have a field with several drop-down names (office locations).

What I need: if name contains a slash ( /) in it then it should be a line break immediately after slash. Any help would be highly appreciated.

thank you
M

Rayed
November 21st, 2008, 03:19 PM
M,
If you want a simple line break in a rule, just type in the html <br> after the forward slash.
This will make the words after the / to jump to the next line.
Hope it helps.
Rayed

MikeVM
November 24th, 2008, 05:58 AM
Rayed,

thank you, this works - partially, but I have other fields with the same drop-down name (I use list from the library names), which not supposed to print two lines...
If I use *<br>* in the list, that line would force to break everywhere which I do not want...