Click here to Skip to main content
15,885,891 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,
I have a Note field which contains the data like
...
Test A: Result data a,result data
Test B: Result data C
Test C: Results A,results D
...

Now, the Test A: Test B:.. is fixed (as const) that but the result content is dynamic. the set of results (A,B,C) is stored in one (results) field which is Note Type.

my problem is to have it display like
ASM
Test A: Result data a,result data
Test B: Result data C
Test C: Results A,results D


i.e.
Test A,B,C: should be formatted differently. Is it possible with JQuery/CSS?

Now, if I still have to improve the problem explanation..
The entire content ( "Test A: results.. to Test C: results..") is in ONE field called TestResults, which is NOTE type in a List X. The problem is to add formatting (bold/color) only to "TEST A/B/C:" part of the content. I can do replace.("Test A:"," [b]Test A:[/b]") and change HTML of each item..

sounds possible?
Posted
Updated 26-Apr-11 10:59am
v3

1 solution

You can use HTML formatting and store <br> tags in the field
 
Share this answer
 
Comments
madhu.malushte 26-Apr-11 13:50pm    
Mark,
I need to format it on client side, line breaks are already added, i need Test A: to be bold but not result data.
[no name] 26-Apr-11 15:16pm    
You're question wasn't clear. Regardless the same answer applies. Use include the HTML formatting in the field contents

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900