Skip to main content
Karen_Little
Inspiring
August 26, 2007
Answered

Making blank lines show up in a form field

  • August 26, 2007
  • 1 reply
  • 471 views
I need to pass text that I gather from a number of places to a record that will later be edited in a field. I'd like to have a blank line between each group of information (like a blank line between paragraphs).

The only way I can do this is to include <br><br> after each section. This information shows up perfectly everywhere EXCEPT in a form field where the br's show up and the paragraphs run together.

The display in the form fields is HTMLEditFormat(). If I originate the information from those fields, everything works perfectly. I need to figure out how to create the information elsewhere so it shows up correctly in those fields so the information can be edited.

Note that when I look at the records in the database, the information that was initiated from the form field appear just like this message does. You see the returns and the blank lines between the information, but no <br>s. In the information I generate from elsewhere I do include the <br>. So the question is - how do I save this information so it contains returns without introducing <br>s?
    This topic has been closed for replies.
    Correct answer Karen_Little
    I figured it out - One uses the Chr() function, so the solution is:

    myVar = "#information##chr(13)##chr(10)##chr(10##MoreInfo#"

    chr13 is a return and chr10 is a linefeed

    1 reply

    Karen_Little
    Karen_LittleAuthorCorrect answer
    Inspiring
    August 26, 2007
    I figured it out - One uses the Chr() function, so the solution is:

    myVar = "#information##chr(13)##chr(10)##chr(10##MoreInfo#"

    chr13 is a return and chr10 is a linefeed