Add javascript to a hyperlink in a Sharepoint hyperlink column RRS feed

  • Question

  • Hi All,

    I have a list in sharepoint 2010. One column has type as hyperlink or picture. Among all of the hyperlinks available in list data, on click of one particular hyperlink i want to add a javascript function.

    Is there any client side solution of doing this? Else what is the best way to do this?

    My requirement: In list data when i click on a particular hyperlink, it should be validated for authorization based on type of user.

    e.g. We have two type of users with emp id ranging 1001-1999 and 7001-7999. Now for first category, when the user click on hyperlink it should show an alert message, "this form is not available for these users". For others it should be redirected to that URL.



    Wednesday, July 4, 2012 8:05 PM


All replies