Check out the LimeSurvey source code on GitHub!

Changing templete according to a token

More
5 years 8 months ago #62243 by Samba
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

Please Log in to join the conversation.

More
5 years 8 months ago #62248 by tpartner
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.

Please Log in to join the conversation.

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