Remove Hyperlink From People Picker Control Value in Dispform page of lists

I have one list with Column name called Employee in list as People and Group field Type and some others fields.Then I had to display data from this list to some other site.I did that with help of DVWP.
When you display items in DVWP Webpart the Employee Name column has Hyperlink to UseDisp.aspx Page.Today one of User Click on Employee Name and he was Redirected to User Display page and once he hit close on that page he was redirected to some other page then Page he actually Come from and he lost.
Now i want to get rid of that Link.
Here is Jquery Code

    <script src="../JSLibrary/jquery-1.3.2.min.js" type="text/javascript"/>
    <script type="text/javascript">
              $(document).ready(function() {
                     //For DataView Webpart
                     $('td.ms-vb nobr span a').each(function (i) {
                     $(this).parent().html($(this).text())
             });
           //   For DispForm.aspx page of list
               $('td.ms-formbody nobr span a').each(function (i) {
               $(this).parent().html($(this).text())
             });
});
</script>
Advertisements

2 thoughts on “Remove Hyperlink From People Picker Control Value in Dispform page of lists

    • Hi Stefanie
      you have to open that page on which you have inserted webpart in SPD and add Jquery as above in DVWP.
      Just for heads up this might not work in your case if your DVWP render different HTML su might want to modify Selector to get it work let me know if you need further help.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s