Skip to content

Instantly share code, notes, and snippets.

@PiotrFerenc
Last active September 11, 2018 09:26
Show Gist options
  • Save PiotrFerenc/79269877935fa343bcd9e20a34fd3622 to your computer and use it in GitHub Desktop.
Save PiotrFerenc/79269877935fa343bcd9e20a34fd3622 to your computer and use it in GitHub Desktop.
<xsl:template name="test">
<xsl:param name="Pos" select="position()"/>
<h1>test</h1>
<SharePoint:FormField runat="server" id="testfield1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('testfield',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
</xsl:template>
<xsl:template name="test2">
<xsl:param name="Pos" select="position()"/>
<h1>test</h1>
<SharePoint:FormField runat="server" id="testfield2{$Pos}" ControlMode="Display" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('testfield',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment