Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to create a custom column in Sharepoint 2010 using VS 2010. When user click on this hyperlink it should open in modal popup. Please guide me. How can I achive this?

share|improve this question

2 Answers

Declare the field as below

<Field Type="URL" Format="Hyperlink" Name="MyLinkName" ID="{GUID}" DisplayName="MyLinkDisplayName" Required="TRUE" Group="Custom Columns" />

Set 'Type' as "URL" and 'Format' to "Hyperlink" .

*Generate a GUID from VS and add it to the ID attribute. (I removed my GUID) How to generate a GUID - Click Here

share|improve this answer

I dont know about modal popups. According to what I read, its a javascript. So in the field definition you can add the javascript to the "NavigationUrl" attribute as below.

NavigateUrl="javascript:alert('Hello')" 

Not sure whether it solved your problem...

share|improve this answer

Your Answer

 
discard

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.