Solved

How do you render html in a sharepoint list view?

Posted on 2010-09-21
1
808 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

820 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