Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

issue formatting out put

Participant ,
Aug 06, 2010 Aug 06, 2010

i have an app that stores text from a form, in a data base field called RESPONSE.  the form field is either a text input or textarea.  My issue is that the customer enters both paragraph text and list text in the same field.  When i out put this in  report they want to see:

some text, some text some text some text some text

item 1  
item 2
item 3
and currently they  see two paragraph on with the list items strung end to end.

is there a way that i can take the data and on out putting it display the paragraph as a paragraph and the list items as a list?

currently using paragraphFormat(response) which works great as long as response is not a list.

any suggestions?

TOPICS
Getting started
444
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 06, 2010 Aug 06, 2010

Doing it this way:

#replace(HTMLEditFormat(response), chr(10), "<br />", "all")#

has the following advantages.

It will display more or less as entered.

Javascript will display instead of execute.

Angle brackets used as math symbols will display properly.

Translate
LEGEND ,
Aug 06, 2010 Aug 06, 2010

Doing it this way:

#replace(HTMLEditFormat(response), chr(10), "<br />", "all")#

has the following advantages.

It will display more or less as entered.

Javascript will display instead of execute.

Angle brackets used as math symbols will display properly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 06, 2010 Aug 06, 2010
LATEST

Thanks, that worked great.

JBird

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources