Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Changing templete according to a token

Changing templete according to a token 5 years 5 months ago #62243

  • Samba
  • Samba's Avatar
  • Offline
  • Junior Lime
  • Posts: 30
  • Karma: 0
Hi,

I was wondering if it is possible to change a templete according to a token.

What i intend to do is to keep 2 tokens for a survey and allow multiple uses to tokens using the workaround mentioned.

So when token "x" is entered it takes the participant to the survey with a particular templete and when token "y" is entered it takes the participant to the survey with a particular templete (basically looks different and has the same question) and the answers are recorded under the datatabase of a single survey.

I havent come across a workaround for this as yet. so i'm guessing some king of javascrit or something.. but havent yet got to any direction on it.

Thanks in advance

I am using the latest release of LS

Regards,
Samba
The administrator has disabled public write access.

Changing templete according to a token 5 years 5 months ago #62248

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
You can't switch templates but you may be able to use JavaScript to insert another style sheet - forum.jquery.com/topic/loading-stylesheets-on-the-fly
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
Time to create page: 0.221 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form