Welcome, Guest
Username: Password: Remember me

TOPIC: Quote the name of the Survey in a question

Quote the name of the Survey in a question 3 years 1 month ago #57776

  • Mike1985
  • Mike1985's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 49
  • Karma: 0
I have a feeling this a really dumb question... but I tried searching the manual and had no luck.

I thought entering {SURVEYNAME} in to one of the questions would indeed put in the name of my survey... but it hasn't. Is there something else I should be trying?

Mike
The administrator has disabled public write access.

Re: Quote the name of the Survey in a question 3 years 1 month ago #57803

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3844
  • Thank you received: 690
  • Karma: 330
Seems that placeholder isn't available in questions. Try adding the following to the source where you want to display the name.
<script type="text/javascript">document.write($('title').text());</script>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image