HI,
I am trying to create a custom "Edit" link in custom list using the custom definitions.
In the list columns, I have created a column as below:
<Field Type="Computed" DisplayName="Edit Item" ID="GUID" ReadOnly="TRUE" StaticName="CustomTestFormLink" Name="CustomTestFormLink" />
I have added fldtypes_TestRequestCustomDefinitions.xsl, which has the below XSL data:
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"><xsl:template match="FieldRef[@Name='CustomTestFormLink']" mode="Computed_body"><xsl:param name="thisNode" select="."/><a href="/sites/Test.aspx?ItemGuid={$thisNode/@CustomItemGuid}">Edit</a></xsl:template></xsl:stylesheet>
The above code works well in SharePoint 2010 and the Edit link is shown, but the Edit link is not getting created in SharePoint 2013 custom list.
How to fix this?
Thanks