Welcome, Guest
Username: Password: Remember me

TOPIC: button to share survey to other emails

button to share survey to other emails 1 year 3 months ago #104717

  • davidmf
  • davidmf's Avatar
  • Fresh Lemon
  • Posts: 2
  • Karma: 0

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 ?
The administrator has disabled public write access.

button to share survey to other emails 1 year 3 months ago #104722

  • Ben_V
  • Ben_V's Avatar
  • Platinum Lime
  • Posts: 1357
  • Thank you received: 323
  • Karma: 89

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="http://twitter.com/share" 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="http://example.com/index.php/survey/index/sid/{SID}/newtest/Y/">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

* or into completed.pstpl file of your template


goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
The administrator has disabled public write access.
The following user(s) said Thank You: davidmf
Moderators: ITEd
Time to create page: 0.197 seconds
Donation Image