Using SharePoint Designer in Data View Web Part using the people picker with multiple names Display

Posted by Sagarp under SharePoint category on | Points: 40 | Views : 2354
Ex. 2; #abc;3;#pqr

Ans: abc;pqr

<script type="text/javascript">
function CleanNames(textclean) {
return text2clean.replace(/[;#0-9]+/g, "; ");

Then call it from your XSL

<xsl:if test="string-length(@Employess) != 0">
<script type="text/javascript">document.write(CleanNames("<xsl:value-of select="@Employess" />"));</script>

Comments or Responses

Login to post response