Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

To use the Customize URL in your survey or report you need to go to the Launch or Publish pages, and then:

  1. Select the Customize URL option.
  2. In the text field, type your domain name and the webpage name where the survey will be placed, as shown in the example.
  3. Click Save to generate your new survey link.

 

Expand
titleTo make this link work, ask your webmaster to place the script into the body of the webpage you have indicated in the survey link or report link.
Code Block
titleCopy and paste the script below into the body section of your webpage.
<script type='text/javascript'>
x=window.location;
xSrc=unescape(x);
x=xSrc.toLowerCase();
indOfSur=(""+x).indexOf("sid=");
indOfPwd=(""+x).indexOf("pwd=");
indOfNext=(""+x).indexOf("&");
indOfLQID=(""+x).indexOf("lqid=");
if (indOfNext<0) indOfNext=(""+x).length;
SID=(""+x).substr(indOfSur+4,indOfPwd-indOfSur-4);
PWD=(""+x).substr(indOfPwd+4,indOfNext-indOfPwd-4);
PARMS="";
if (indOfLQID>0) PARMS=(""+xSrc).substr(indOfLQID+6);
y="";
if (indOfSur>0 && indOfPwd>0) y="httphttps://216.34.99.34kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1";
indOfPwd2y=(""+y.toLowerCase()).indexOf("pwd2=");
indOfPwd2x=(""+x.toLowerCase()).indexOf("pwd2=");
withoutPwd2 =(""+y).substr(0,indOfPwd2y-2);
if (indOfSur>0 && indOfPwd>0 && indOfPwd2x>0) {
	if (indOfLQID>0) window.location=withoutPwd2+"/?logo=1&LQID=1&"+(""+x).substr(indOfPwd2x,(""+x).length-indOfPwd2x)+PARMS;
	else window.location=withoutPwd2+"/?logo=1&"+(""+x).substr(indOfPwd2x,(""+x).length-indOfPwd2x);
}
if (indOfSur>0 && indOfPwd>0 && indOfPwd2x<0) {
    if (indOfLQID>0) window.location="httphttps://216.34.99.34kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1&LQID=1"+PARMS;
	else window.location="httphttps://216.34.99.34kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1";
}
indOfSurveyID=(""+x.toLowerCase()).indexOf("surveyid=");
indOfReportID=(""+x.toLowerCase()).indexOf("reportid=");
indOfpw=(""+x).indexOf("pw=");
SurveyID=(""+x).substr(indOfSurveyID+9,indOfReportID-indOfSurveyID-9);
ReportID=(""+x).substr(indOfReportID+9,indOfpw-indOfReportID-9);
pw=(""+x).substr(indOfpw+3,(""+x).length-indOfpw);
if (indOfSurveyID>0 && indOfpw>0){ 
	window.location="httphttps://216.34.99.34kslink.me/Member/Public/report.jsp?SurveyID="+SurveyID+"&ReportID="+ReportID+"&pw="+pw+"&logo=1"; 
}
// End -->
</script>
Expand
titleIf you are planning to create a new page for your survey or report, you can use this source.
Code Block
languagejavascript
<html>
<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" media="all" type="text/css" href="/style/structure.css?v=8.3"/>
<link rel='stylesheet' type='text/css' href='/style/css/global.css'>
 
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="/style/ie.css?v=8.3"/>
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" media="all" type="text/css" href="/style/ie8.css?v=8.3"/>
<![endif]-->
<script type="text/javascript" src="/js/vendor/ks.libs.js?v=8.3"></script>
<script type='text/javascript'>
<!--
function MM_swapImgRestore()
{ var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }
function MM_findObj(n, d)
{ var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)
{d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage()
{ var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
/*
*  name - id HTML object
*  hide - (true|false)
*/
function MM_HideLayer(name,hide){
  var obj = document.getElementById(name);
  if(obj!=null){
    var v = (hide)?'hidden':'visible';
    obj.style.visibility = v;
  }
}
function AfterStart(){
  MM_HideLayer("wait_div",true); /*AfterStart*/
}
//-->
</SCRIPT>
</head>
<BODY onLoad="javascript:AfterStart();">
<script type='text/javascript'>
<!-- Begin//write out the loading message in a <div> layer
var my_page ='<div align="center" id="wait_div" style="position:absolute;left:0;top:0;border:0px none #000000;z-index:100;height:100%;width:100%;background-color:#FFFFFF;layer-background-color:#FFFFFF;visibility:visible">';
my_page+='<div id="Layer1" style="position:absolute;z-index:1001;left:42%; top:40%">';
my_page+='<b><FONT FACE="Arial Bold, Helvetica, sans-serif" SIZE="4" COLOR="#0333FF">';
my_page+='<table><tr><td><font color="blue" size="10">Loading...</font></td></tr></table>'; //GIF IMAGE animation include here
my_page+='</font></b></div></div>';
if(document.all) document.write(my_page);
x=window.location;
xSrc=unescape(x);
x=xSrc.toLowerCase();
indOfSur=(""+x).indexOf("sid=");
indOfPwd=(""+x).indexOf("pwd=");
indOfNext=(""+x).indexOf("&");
indOfLQID=(""+x).indexOf("lqid=");
if (indOfNext<0) indOfNext=(""+x).length;
SID=(""+x).substr(indOfSur+4,indOfPwd-indOfSur-4);
PWD=(""+x).substr(indOfPwd+4,indOfNext-indOfPwd-4);
PARMS="";
if (indOfLQID>0) PARMS=(""+xSrc).substr(indOfLQID+6);
y="";
if (indOfSur>0 && indOfPwd>0) y="httphttps://216.34.99.34kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1";
indOfPwd2y=(""+y.toLowerCase()).indexOf("pwd2=");
indOfPwd2x=(""+x.toLowerCase()).indexOf("pwd2=");
withoutPwd2 =(""+y).substr(0,indOfPwd2y-2);
if (indOfSur>0 && indOfPwd>0 && indOfPwd2x>0) {
	if (indOfLQID>0) window.location=withoutPwd2+"/?logo=1&LQID=1&"+(""+x).substr(indOfPwd2x,(""+x).length-indOfPwd2x)+PARMS;
	else window.location=withoutPwd2+"/?logo=1&"+(""+x).substr(indOfPwd2x,(""+x).length-indOfPwd2x);
}
if (indOfSur>0 && indOfPwd>0 && indOfPwd2x<0) {
    if (indOfLQID>0) window.location="httphttps://216.34.99.34kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1&LQID=1"+PARMS;
	else window.location="httphttps://216.34.99.34kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1";
}
indOfSurveyID=(""+x.toLowerCase()).indexOf("surveyid=");
indOfReportID=(""+x.toLowerCase()).indexOf("reportid=");
indOfpw=(""+x).indexOf("pw=");
SurveyID=(""+x).substr(indOfSurveyID+9,indOfReportID-indOfSurveyID-9);
ReportID=(""+x).substr(indOfReportID+9,indOfpw-indOfReportID-9);
pw=(""+x).substr(indOfpw+3,(""+x).length-indOfpw);
if (indOfSurveyID>0 && indOfpw>0){ 
	window.location="httphttps://216.34.99.34kslink.me/Member/Public/report.jsp?SurveyID="+SurveyID+"&ReportID="+ReportID+"&pw="+pw+"&logo=1"; 
}
// End -->
</script>
<!-- FUNCTION_CLOSEWINDOW -->
<!-- Caption page -->
</body>
</html>



Note
  • You will need to add this script to the webpage only once and it will work for all your surveys and reports - you will just need to select the Customize URL option and specify the domain and the webpage name.
  • If you have a Private Label or Self-Hosted installation of our application, you should modify the URL provided in the script above to reflect the actual address of your installation or the custom link configured in the system.

...