- Posts: 13
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
https://yourSurveySite.com/limesurvey/index.php?lang=en&sid=12345&token=678
<a href="https://yourSurveySite/limesurvey//optout.php?lang=en&sid=12345&token={TOKEN}">Opt out</a>
<p><a href="https://eteam.ou.edu/survey//optout.php?lang=en&sid=<?php echo $scid; ?>&token=<?php echo $clienttoken; ?>">Click here to opt out of this survey</a></p>
<p><a href="https://eteam.ou.edu/survey//optout.php?lang=en&sid=<?php echo $_GET["sid"]; ?>&token=<?php echo $_GET["token"]; ?>">Click here to opt out of this survey</a></p>
$(document).ready(function() { // Insert a new div after the progress bar $('<div id="navigator2" />').insertAfter('#progress-wrapper'); // Style the new div $('#navigator2').css({ 'text-align':'center' }); // Insert opt out url in the new div document.write("<p>here it is</p>"); });
I'm not sure why you would want an opt-out link on the end page, the respondents will already have completed the survey.It's not available in the endpage.pstpl.
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Find the survey ID if($('input#fieldnames').length != 0) { var fieldNames = $('input#fieldnames').attr('value'); var tmp = fieldNames.split('X'); var sID = tmp[0]; } // Insert a new div after the progress bar $('<div id="optOutLink" />').insertAfter('#progress-wrapper'); // Style the new div $('#optOutLink').css({ 'text-align':'center' }); // Insert opt out url in the new div $('#optOutLink').html('<a href="optout.php?lang=en&sid='+sID+'&token={TOKEN}">Click here to opt out</a>'); }); </script>