Determine initial question based on URL

More
3 years 7 months ago #107568 by Ronnos
Ronnos created the topic: Determine initial question based on URL
Hi,

I've made a survey where people can find answers about certain categories. My survey can be approached from an external site, redirecting to the survey URL. Now I want different starting questions for each external link. For example, on my website I want to have two URLS: urlX starts with question 5, and urlY starts with question 7 (where the present questions are automaticly prefilled in, as far as i can see it's only possible to prefill only one question).

In other words, I want to jump to a certain question on basis of the URL. Is it possible to add conditions based on URL?

Thank in advance

Please Log in to join the conversation.

More
3 years 6 months ago #107725 by tpartner
tpartner replied the topic: Determine initial question based on URL

Is it possible to add conditions based on URL?

Not directly but you should be able to pre-fill a question with the URL and then use that question for conditions or relevance.


.

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.

More
3 years 6 months ago #107759 by Ronnos
Ronnos replied the topic: Determine initial question based on URL
Thanks for your answer! I'm gonna try to build in prefilled questions. Meanwhile I found that it's possible to fill in multiple answers to questions with "&".
On first surveys page, i ask a few questions which will be prefilled with the URL. Those questions i'm gonna hide with CSS, so when the user clicks to next page, i won't see which questions are already filled in, and so i can redirect him to the correct page.

Thanks!

Please Log in to join the conversation.

More
3 years 6 months ago #108304 by Foram
Foram replied the topic: Determine initial question based on URL
Hi Ronnos,

You said that "My survey can be approached from an external site, redirecting to the survey URL". I want to implement the same thing in my project.

Can you tell me how can I get the Survey Url (Note : I don't want to use email feature of LimeSurvey). I want to implement one email application from where I will send Survey Url

For implementing this feature, I need to know where the Survey Url is stored? It is stored in Database of LimeSurvey or is it generated by the PHP code of LimeSurvey ?

Please Log in to join the conversation.

More
3 years 6 months ago #108318 by DenisChenu
DenisChenu replied the topic: Determine initial question based on URL
PHP code generated.

It shown on Survey admin page

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 6 months ago #108323 by Foram
Foram replied the topic: Determine initial question based on URL
Okay Thanks. :)

it is generated based on survey id right ?

that means if my survey id is 1 and the server which is hosting my Limesurvey application is 10.10.10.10 then the url will be
"http://10.10.10.10/limesurvey/index.php/1/lang-en"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!