Solved

How do you render html in a sharepoint list view?

Posted on 2010-09-21
1
802 Views
Last Modified: 2012-05-10
I am using BPOS's SharePoint Online Standard.

I have two lists and a view for each. Lets say list A is displayed in view A and list B is displayed in view B. View A is displayed on my main (default) page of my sharepoint site while view B is displayed on a seperate page that I created within the same site.

Both views use a calculated column to render html. The html renders correctly for view A but not for view B. They use the same formula in their calculated columns. Why would that be?
0
Comment
Question by:tallfiji
1 Comment
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33729721
SharePoint is displaying the code as things like > instead of < making it show the HTML on the screen rather than rendering it.

Use the JavaScript in this tutorial: http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/  It shows you how to make a calculated column that as < DIV > < /DIV > on each end of the cell and makes it render correctly.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question