Check out the LimeSurvey source code on GitHub!

button to share survey to other emails

3 years 1 week ago #104717 by davidmf

Is there a way for a person who is answering a public survey to share the link to that survey to others. Like a share button ?

Please Log in to join the conversation.

3 years 1 week ago #104722 by Ben_V

Into the "completed" textarea* (=message displayed when survey is submited), you can add any kind of links, buttons etc.

Some valid examples (using {SID} placeholder to retrieve the survey ID dynamically ):

1) Share via e-mail:
<script language="javascript">
function mailpage()
mail_str = "mailto:?subject= Check out this survey";
mail_str += "&body= I thought you might be interested in this.%0A";
mail_str += "You can view it at: %0A http://yourdomain.tld/index.php/survey/index/sid/{SID}/newtest/Y/ %0A"
location.href = mail_str;
<!-- plain text link or button -->
<a href="javascript:mailpage()">Share with a friend</a>

2) twitter button:
<a href="" class="twitter-share-button"  data-lang="en" data-text=" Lorem ipsum dolor sit amet, consectetur adipiscing elit, set eiusmod tempor incidunt et labore et dolore magna aliquam. Ut enim ad minim veniam, quis nostrud exerc" data-count="none" data-url="{SID}/newtest/Y/">Tweet</a>
<script type="text/javascript" src=""></script>

* or into completed.pstpl file of your template



EM Variables => | EM Roadmap =>
Last Releases => 2.6x.x | 2.06/2.6.x =>
Demo Surveys => (already included in /docs/demosurveys)
The following user(s) said Thank You: davidmf

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form