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

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



01Ex. 2; #abc;3;#pqr
02 
03Ans: abc;pqr
04 
05<script type="text/javascript">
06     function CleanNames(textclean) {
07          return text2clean.replace(/[;#0-9]+/g, "; ");
08     }
09</script>
10 
11Then call it from your XSL
12 
13<xsl:if test="string-length(@Employess) != 0">
14     <script type="text/javascript">document.write(CleanNames("<xsl:value-of select="@Employess" />"));</script>
15</xsl:if>

Comments