Solved

How do you render html in a sharepoint list view?

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

705 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

22 Experts available now in Live!

Get 1:1 Help Now