Quantcast
Channel: SNR SharePoint Blog » SharePoint Designer
Viewing all articles
Browse latest Browse all 8

Remove hyperlink from a people & group field

$
0
0

Today I was working on one of my custom data views. After I inserted the “Created by” field, I found that I can’t remove it’s hyperlink. ( so users can click on it and then they’ll redirect to the user display page)

I didn’t want that! So after a little searching I found a solution here.

in the code view find the people and group field. You should format it as Lable and then change te value of text property to: ( in my case it was Created by)

text=”{substring-after(substring-before(substring-after(@Author, ‘ID=’), ‘<’), ‘>’)}”

In my case it worked !

if you copy and paste the above code, don’t forget to change the quotes and double quotes.



Viewing all articles
Browse latest Browse all 8

Trending Articles