SM Tutorial 1: A Simple Common Survey: Difference between revisions
Created page with "=Introduction= In this survey we shall build a survey with the cool blue look you have seen in some of the examples. Remember, we are only building the "appearance of the su..." |
m 1 revision imported |
(No difference)
| |
Latest revision as of 06:38, 12 April 2026
Introduction
In this survey we shall build a survey with the cool blue look you have seen in some of the examples. Remember, we are only building the "appearance of the survey", the content of the questions and headings is up to you. This presentation is suitable for all classic question - answer survey purposes, and is probably the most common format you will use. It is easy to change the colouring and fonts etc to suite your needs.
This is what it looks like with questions loaded:
Getting This Look
Step 1: Create a new survey in one of the BPC SurveyManager clients and call it whatever you like. Step 2: Working in the header section only, past the following into the "Layout-Form Shell" field:
<HTML>
<HEAD>
<#JVScriptLib1><#CSSSheet ><#csslib1 >
<style type="text/css">
body {
scrollbar-3d-light-color : #AF75EA;
scrollbar-arrow-color : #0033cc;
scrollbar-base-color : #9999CC;
scrollbar-dark-shadow-color : #000000;
scrollbar-face-color : #9999CC;
scrollbar-highlight-color : #ffffff;
scrollbar-shadow-color : #1B0037;
background-color: #CCCCFF;
}
.style22 {color: #FFFFFF; font-weight: bold; font-size: 14px; font-family: Arial, Helvetica, sans-serif; }
.style24 {color: darkblue; font-weight: bold; font-size: 40px; font-family: Arial, Helvetica, sans-serif; }
</style>
</HEAD>
<BODY id="pagecontainer" >
<table width=100% >
<tr><td>
<table>
<tr>
<td></td>
</tr>
</table>
</td>
<td align=center >
<br >
<span class=style24 ><#SurveyName></span >
</td>
<td align=right ><#fpropimage FPROP="SIDLogo" width="110" height="120" >
</td>
</tr>
</table>
<hr>
<BPCDEBUG >
<table width=100%>
<tr ><td ><font color="red" ><i><#errormessage ></i ></font ></td >
</tr >
</table >
<span class="SurveyIntro" ><#SurveyIntro ></span >
<#SurveyBody >
<hr>
<p><span class="PageProgress"><#PageProgress ></span></p>
<p><input type=button name="cmdPring" value="Print Page" onClick="PrintMePage('pagecontainer')" ></p>
<p align=center ><i>Note: You may use your back or forward browser buttons and reenter information. - Just remember to press the continue button at the end of each page for which you have changed your response or the changes will not be recorded.</i></p>
<span class="SurveyHelp" ><#SurveyHelp></span ><#HelpLink ><br>
<span class="SurveyPrivacy" ><#SurveyPrivacy></span ><#PrivacyLink ><br >
<BPCDEBUG >
</BODY>
</HTML>
Step 3: In the "Layout - Rows" field paste the following:
RT_TR=<#QuesDisplayID valign=top ><#Question valign=top ><#OpType> RT_TH=<tr><TH background="DoGetFile?URL=/bluebar_single.jpg&PID=PRVW" ><font color="darkblue">Number</font></TH><TH background="DoGetFile?URL=/bluebar_single.jpg&PID=PRVW" ><font color="darkblue">Question</font></TH><TH background="DoGetFile?URL=/bluebar_single.jpg&PID=PRVW" ><font color="darkblue">Response</font></TH></tr> RT_TRCOLOUR=#DDDDFF,white
Step 4: In the "Survey Properties" tab (or window - depending on the client you are using) copy and paste the following. You paste by right clicking on the edge of the grid and choosing paste (If paste is not highlighted, then switch the "row select" on and off in the contect menu and it should enable paste).
<smxmlpacket ><survey_propertyQry ><rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >CSSSheet</PropertyID ><PValue ><style type="text/css" >.breaka {page-break-after: always}.breakb {page-break-before: always}@page {margin: 1cm }</style ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >CSSUse</PropertyID ><PValue ><br class="breaka" ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >ErrorHTML</PropertyID ><PValue ><#ErrorMsg colspan=3 align=center BgColor=yellow style="color:red;font:bold;" ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >ErrorMsgPos</PropertyID ><PValue >below</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >GenPageReqErrorMsg</PropertyID ><PValue >***Please Note: You have not filled in a required question. Please refer to the identified question below. ***</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >GLV</PropertyID ><PValue >True</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >PrivacyLink</PropertyID ><PValue ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >RadioFrmt</PropertyID ><PValue >width=100%</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >ReqErrorMsg</PropertyID ><PValue >The question above is a required question. Please complete prior to continuing.</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SIDLogo</PropertyID ><PValue ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SuppressFirstContinue</PropertyID ><PValue >False</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SuppressFirstHeading</PropertyID ><PValue >False</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyClosed</PropertyID ><PValue ><P>The Survey is Now Closed.</P>
<P>Thankyou for your interest.</P>
</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyEnd</PropertyID ><PValue ><P><BR>
<H1 align=center><FONT color=blue>The Survey is now complete.</FONT></H1><BR>
<P></P><BR>
<P><BR>
<H3 align=center>Should you wish to revise your responses, you can do so prior to the survey response cut off date by using<BR>the browser's back button now, or reclicking on the link in the original email later. <BR><BR>Thankyou again for your participation.</H3>
<P></P><BR><BR><BR></FONT><BR><BR><BR><BR><BR><BR><BR>.<FONT color=white></FONT>
</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyHeading</PropertyID ><PValue ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyHelp</PropertyID ><PValue ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyIntro</PropertyID ><PValue ><P> </P>
</PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyMessage</PropertyID ><PValue ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >SurveyPrivacy</PropertyID ><PValue ></PValue ></rowset >
<rowset ><OrgID >default</OrgID ><SID >default</SID ><InstanceID >default</InstanceID ><PropertyID >UseWeight</PropertyID ><PValue ></PValue ></rowset >
</survey_propertyQry ></smxmlpacket >
Alternatively, you can enter the properties manually use InstanceID="default" in all cases for each PropertyID:
- CSSSheet= <style type="text/css" >.breaka {page-break-after: always}.breakb {page-break-before: always}@page {margin: 1cm }</style >
- CSSUse=
- ErrorHTML= <#ErrorMsg colspan=3 align=center BgColor=yellow style="color:red;font:bold;" >
- ErrorMsgPos= below
- GenPageReqErrorMsg= ***Please Note: You have not filled in a required question. Please refer to the identified question below. ***
- GLV= True
- PrivacyLink=
http://myorg/myprivacypage.html
- RadioFrmt= width=100%
- ReqErrorMsg= The question above is a required question. Please complete prior to continuing.
- SIDLogo= /myfolder/MainLogo.jpg
- SuppressFirstContinue= False
- SuppressFirstHeading= False
- SurveyClosed=
<P>The Survey is Now Closed.</P><P>Thankyou for your interest.</P>
- SurveyEnd=
<P><BR> <H1 align=center><FONT color=blue>The Survey is now complete.</FONT></H1><BR> <P></P><BR> <P><BR> <H3 align=center>Should you wish to revise your responses, you can do so prior to the survey response cut off date by using<BR>the browser's back button now, or reclicking on the link in the original email later. <BR><BR>Thankyou again for your participation.</H3> <P></P><BR><BR><BR></FONT><BR><BR><BR><BR><BR><BR><BR>.<FONT color=white></FONT>
- SurveyHeading=
- SurveyHelp=
- SurveyIntro= <P> </P>
- SurveyMessage=
- SurveyPrivacy=
- UseWeight= False
Step 5: (Optional) Load a logo into a folder. Using one of the logo or file upload methods (the web client will do this for you when you build the header, while the RM and SM Desktop clients provide dedicated upload facilities. You should replace the entry for "SIDLogo in step 4 with the correct path to your logo.
Step 6: In the "Survey - Script" tab/window of the header insert the following "@([*])" (excluding the quotes). This is the default qscript which tells the rules engine to display a single question group to a page and just get the next question group after the last one each time it has to display a page. It can be overridden by the question level rules.

