Blog Stats
  • Posts - 40
  • Articles - 0
  • Comments - 28
  • Trackbacks - 0

 

How to redirect the SharePoint Page to another page based on condition using SharePoint Designer 2010

1.   Open Site Page in SharePoint Designer

2.   Search for <xsl:template name="dvt_1.rowedit"> and put the below line after <xsl:param name="Pos" select="position()"/>.

Here the condition is

If(FeedbackCompleted ==Yes) then

   Redirect the page to FeedbackCompleted.aspx

 

Code:

  1. <xsl:if test="@FeedbackCompleted='Yes'">
  2.    <xsl:variable name="RedirectURL" select="concat('/site3/surveys/Lists/TestList/','FeedbackCompleted.aspx?ID=',@ID)"/>
  3.                   <script type="text/javascript">
  4.                         window.location.replace(&apos;<xsl:value-of select="$RedirectURL" />&apos;);
  5.                   </script>
  6. </xsl:if>

 


Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

 

 

Copyright © Jayant Kumar