Skip to main content
Skip table of contents

Customize URL

To use the Customize URL in your survey or report, you need to go to the Launch page 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.

  3. Click Save to generate your new survey link.

 

To 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.

Copy and paste the script below into the body section of your webpage.

CODE
<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="https://kslink.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="https://kslink.me/survey/"+SID+"/"+PWD+"/"+"?logo=1&LQID=1"+PARMS;
    else window.location="https://kslink.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="https://kslink.me/Member/Public/report.jsp?SurveyID="+SurveyID+"&ReportID="+ReportID+"&pw="+pw+"&logo=1";
}
// End -->
</script>

  • 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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.