Remove hyperlink from a people & group field

Posted: December 25, 2010 in Customization, SharePoint Designer
Tags: , ,

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.

Advertisements
Comments
  1. Замир says:

    This brilliant thought is necessary just by the way

  2. Swapnil Mandrupkar says:

    Good Working Solution….

    It Solved my big Problem 🙂

  3. Jesus says:

    pero en que lugar coloco esa linea

  4. how about where person or group field is allowed to multiple values? it doesn’t work in that case

  5. Aman Minhas says:

    How about if person or group have multiple values?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s