Having multiple surveys presented at random from one link

More
3 years 3 months ago #102969 by sinandrei
sinandrei created the topic: Having multiple surveys presented at random from one link
Hello everyone,

My question would be if it were possible to have "multiple surveys presented at random from one link". So lets say I have 4 surveys and participant is presented one of those four at random.

I would be keen on using any workaround. Is the easiest thing to do to start all over, start with a randomly presented question and use logical branching from there one?

Thank you in advance,
Andrei

Please Log in to join the conversation.

More
3 years 3 months ago #102970 by supercosh
supercosh replied the topic: Having multiple surveys presented at random from one link
Hello Andrei

I would recommend writing a small PHP script which randomly redirects the user to one of your four surveys.

Then you would send your users the script url instead of the survey url. The script would look like that:
<?php
  $surveys = array (
    1 => 'www.example.com/?s=734567',
    2 => 'www.example.com/?s=734567',
    3 => 'www.example.com/?s=734567',
    4 => 'www.example.com/?s=734567'
  );
 
  $chosen = rand(1,4);
  header("Location: {$surveys[$rand]}");
?>

Regards
Gregor
The following user(s) said Thank You: DenisChenu, sinandrei

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now