Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've got a display form for a list in Sharepoint 2010. I've added a second list which is related and added a section to my form using "Related Item View" in Sharepoint Designer.

Since the related item includes a date and a selection I have no need of the default "title" column which I have hidden and want to remove from the form too.

At the moment I have:

<ViewFields>
          <FieldRef Name="LinkTitle"/>
          <FieldRef Name="Date"/>
          <FieldRef Name="Action"/>
</ViewFields>

The problem is that it is the title which has the link (I guess as "linktitle" that makes sense) which allows the user to select/open/edit. Is there a way to make another column the "clickable" link, or do I have to write my own javascript to handle this?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You can specify needed field in your conten type like this:

<Fields>
    <Field ID="xxxx" Type="xxxx"
        StaticName="xxxx"
        Name="xxx"
        DisplayName ="xxxx"
        Required="TRUE"
        LinkToItem="TRUE"
        LinkToItemAllowed="Required"
        ListItemMenu="TRUE"/>
</Fileds>
share|improve this answer
1  
Thanks! The change I made was just to give: <FieldRef Name="Action" LinkToItem="True"/> and that seemed to work. –  Dave Alger Feb 15 '12 at 12:16
    
@DaveAlger Can you elaborate where do you put this code? I am a totally new to sharepoint and need to accomplish the same thing. –  user5013 Aug 24 at 15:13
    
I'm afraid this is long enough ago that my memory is a little fuzzy and I don't have access to the Sharepoint development tools any more. I'd suggest writing a new question and I'm sure some experts will be able to help. –  Dave Alger Aug 25 at 20:09

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.