Difference between revisions of "Template Page - Confirmation Template"

From SmartWiki
Jump to: navigation, search
(See Also)
 
Line 2: Line 2:
  
 
==Examples==
 
==Examples==
 
 
The following is an example of a simple confirmation page.
 
The following is an example of a simple confirmation page.
<pre style="white-space: pre-wrap;
 
white-space: -moz-pre-wrap;
 
white-space: -pre-wrap;
 
white-space: -o-pre-wrap;
 
word-wrap: break-word;">
 
<html>
 
<head>
 
@STYLELINK@
 
</head>
 
<body leftmargin=1 rightmargin=1 topmargin=1 bottommargin=1 marginheight=1 marginwidth=1>
 
  
<center><h2>Thank you...</h2></center></body>
+
<pre style="white-space: -o-pre-wrap; word-wrap: break-word;">@STYLELINK@</pre><center>
</html>
+
==Thank you...==
</pre>
+
</center>
  
 
After submission, the text "Thank you..." will be displayed to the end user. The end user can be provided here with next steps after the submission process.
 
After submission, the text "Thank you..." will be displayed to the end user. The end user can be provided here with next steps after the submission process.
  
 
The following is an example of a confirmation template that uses [[sslogic|conditional logic]] to determine to which page the user should be redirected after submission:
 
The following is an example of a confirmation template that uses [[sslogic|conditional logic]] to determine to which page the user should be redirected after submission:
<pre style="white-space: pre-wrap;
 
white-space: -moz-pre-wrap;
 
white-space: -pre-wrap;
 
white-space: -o-pre-wrap;
 
word-wrap: break-word;">
 
<html>
 
<head>
 
@STYLELINK@
 
</head>
 
<body leftmargin=1 rightmargin=1 topmargin=1 bottommargin=1 marginheight=1 marginwidth=1>
 
  
 +
<pre style="white-space: -o-pre-wrap; word-wrap: break-word;">@STYLELINK@
 
<!--@sslogic("@Q1@"="Yes" and "@Q2@"="Yes" and "@Q3@"="Yes" and "@Q4@"="Yes")-->
 
<!--@sslogic("@Q1@"="Yes" and "@Q2@"="Yes" and "@Q3@"="Yes" and "@Q4@"="Yes")-->
<script>
+
<script>// <![CDATA[
 
location.href="/ex/ex_Apppage.jsp?token=HwwISRgGZ15RSxde&appid=102587&oppid=@opportunityid@";
 
location.href="/ex/ex_Apppage.jsp?token=HwwISRgGZ15RSxde&appid=102587&oppid=@opportunityid@";
</script>
+
// ]]></script>
 
<!--@else-->
 
<!--@else-->
<script>
+
<script>// <![CDATA[
 
 
 
       location.href ="/simpleface/sm_home.jsp";
 
       location.href ="/simpleface/sm_home.jsp";
 +
// ]]></script>
 +
end</pre>
  
</script>
+
In the above example, if the answer to all four fields named ''Q1'', ''Q2'', ''Q3'' and ''Q4'' are answered "Yes," the user will be redirected to another [[Template Page]] after submission. If the answer is anything other than four "yes"es, the user will be redirected to their home page.  
</body>                                               
 
 
 
<!--@end-->
 
 
 
</html>
 
</pre>
 
 
 
In the above example, if the answer to all four fields named ''Q1'', ''Q2'', ''Q3'' and ''Q4'' are answered "Yes," the user will be redirected to another [[Template Page]] after submission. If the answer is anything other than four "yes"es, the user will be redirected to their [[Setting Your Home Page|home page]].
 
  
 
==See Also==
 
==See Also==
 
* [[Template Page]]
 
* [[Template Page]]
 
* [[Template Page Variables]]
 
* [[Template Page Variables]]

Latest revision as of 15:16, 4 June 2019

The Confirmation Template will be displayed after the Template Page is submitted by the end user.

Examples

The following is an example of a simple confirmation page.

@STYLELINK@

Thank you...

After submission, the text "Thank you..." will be displayed to the end user. The end user can be provided here with next steps after the submission process.

The following is an example of a confirmation template that uses conditional logic to determine to which page the user should be redirected after submission:

@STYLELINK@
<!--@sslogic("@Q1@"="Yes" and "@Q2@"="Yes" and "@Q3@"="Yes" and "@Q4@"="Yes")-->
<script>// <![CDATA[
location.href="/ex/ex_Apppage.jsp?token=HwwISRgGZ15RSxde&appid=102587&oppid=@opportunityid@";
// ]]></script>
<!--@else-->
<script>// <![CDATA[
       location.href ="/simpleface/sm_home.jsp";
// ]]></script>
end

In the above example, if the answer to all four fields named Q1, Q2, Q3 and Q4 are answered "Yes," the user will be redirected to another Template Page after submission. If the answer is anything other than four "yes"es, the user will be redirected to their home page.

See Also