SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to inject HTML into a Custom List schema. Essentially I am injecting a button that would go next to every document in a document library.

Is this possible to do without having to build a completely seperate page and control to surface the data? I'm thinking perhaps something in the custom list template schema or some type of JS injection. I'm using SP 2010.

share|improve this question
up vote 0 down vote accepted

You might want to look into custom fields.

MSDN: Creating Custom SharePoint 2010 Field Types

Avinash blog/guide on how to create your own custom field

It may not be the right way, but it will push you more towards using SharePoints API to its full potential.

share|improve this answer
thanks, I thought about this, but have same feelings about right way that you do – BigOrangeSU Sep 19 '12 at 14:20
this solved it. I had to use CAML to format the main view, but could add a custom control for the popup – BigOrangeSU Oct 25 '12 at 1:22

Not sure if this will help, but have you thought about Calculated Columns? I have come across this blog and there are lots of examples how to insert HTML/CSS into list using a Calculated Column (I am using this technique for displaying images in list columns).

I think JS should work too but I've never tried, give this a shot maybe it will help.

share|improve this answer

What about a custom action in the Edit Control Block for each item, you can point this at a URL and pass the ID of the list item on the query string.

share|improve this answer

As @Tudor mentions; it's possible to use a calculated column to output HTML to the page. An alternative to Christophe's solution would be to use Pentalogic's (the company I work for) free HTML Calculated Column.

You have to sign up for our newsletter, so you'll be forced to read a variety of interesting SharePoint articles (some of which are related to our products) or you could just unsubscribe.

To be fair, even I subscribe to it. Mostly because it usually contains an article or two that I wrote.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.