Solved

How do you render html in a sharepoint list view?

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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 demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now