Welcome, Guest
Username: Password: Remember me

TOPIC: Can I directly jump to different question groups

Can I directly jump to different question groups 5 years 1 month ago #54599

  • zenil79
  • zenil79's Avatar
  • Offline
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 0
I am creating a survey with 4 different question groups . Each group has a different kinds of questions. I would like to put 4 links on the first page of the survey that, each link is a direct link to that question group. Is that possible ?
The administrator has disabled public write access.

Can I directly jump to different question groups 5 years 1 month ago #54601

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5428
  • Thank you received: 1156
  • Karma: 480
You can put your links in the form of a question and then use conditions to hide the unwanted groups.
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.

Can I directly jump to different question groups 5 years 1 month ago #54602

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5428
  • Thank you received: 1156
  • Karma: 480
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.
Last Edit: 5 years 1 month ago by tpartner.
The administrator has disabled public write access.

Can I directly jump to different question groups 5 years 1 month ago #54603

  • zenil79
  • zenil79's Avatar
  • Offline
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 0
That doesn't fully answer it. None of the questions in my groups are mandatory. Is it not possible to just "jump" to a question group without using conditions ? aka a direct link to display a question group ? I consider questions groups more or less as pages. Each "page" has some questions. I want the user to select a "page" by clicking on a link.
The administrator has disabled public write access.

Can I directly jump to different question groups 5 years 1 month ago #54604

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5428
  • Thank you received: 1156
  • Karma: 480
Unfortunately, no, the groups are not "pages". They may be displayed as a page but in reality they are groups of elements in a form. So there is no such thing as http://myLimeSurveys/index.php?group=2 .

The closest you could come to that would be to use JavaScript to advance the form
document.limesurvey.move.value = '2';
document.limesurvey.submit();
but as far as I know, that will only work if the group has already been visited.

I don't understand the problem with using a question and conditions to display the appropriate group. It doesn't matter if the questions are mandatory (except the group selection question).
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.
Last Edit: 5 years 1 month ago by tpartner.
The administrator has disabled public write access.

Can I directly jump to different question groups 5 years 1 month ago #54612

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8252
  • Thank you received: 1126
  • Karma: 336
Maybe you can explain why you need 4 group.

Why you don't use 4 survey, then the four survey link appear on survey list.

:)
The administrator has disabled public write access.

Can I directly jump to different question groups 5 years 3 weeks ago #55541

  • zenil79
  • zenil79's Avatar
  • Offline
  • Junior Lime
  • Posts: 30
  • Thank you received: 2
  • Karma: 0
This is fine..I can use the built in lime survey groups and go sequentially..
The administrator has disabled public write access.

Can I directly jump to different question groups 5 years 3 weeks ago #55568

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Can I directly jump to different question groups 4 years 11 months ago #57175

  • speedtuga
  • speedtuga's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
The feature that allows to jump between different question groups is a specification of my current project.

How can I accomplish this?

How does LimeSurvey knows which is the user current page?
Can I set this value in the cookie or can I change any value in the database?

Thank you for your support.
Last Edit: 4 years 11 months ago by speedtuga.
The administrator has disabled public write access.

Can I directly jump to different question groups 4 years 11 months ago #57232

  • speedtuga
  • speedtuga's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
No workaround for this issue?
Can someone help me?
The administrator has disabled public write access.

Can I directly jump to different question groups 4 years 11 months ago #57285

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
To jump forwards you can use conditions.

To jump backwards there will be a new feature at version 1.91.

There is a hiden element checking the current step in a survey, example:
<!-- group2.php -->
<input type='hidden' name='thisstep' value='8' id='thisstep' />

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Can I directly jump to different question groups 4 years 11 months ago #57286

  • speedtuga
  • speedtuga's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
I will use javascript to simulate button clicks (forward and backwards) and I will check the current step using that hidden value.

Using conditions is not an option in my opinion.

Thank you
The administrator has disabled public write access.

Can I directly jump to different question groups 4 years 11 months ago #57308

  • Mazi
  • Mazi's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 5843
  • Thank you received: 348
  • Karma: 261
You're welcome.

Please post your solution here afterwards.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Can I directly jump to different question groups 4 years 3 weeks ago #72264

  • jsmello
  • jsmello's Avatar
  • Offline
  • Junior Lime
  • Posts: 32
  • Karma: 0
tpartner wrote:
Unfortunately, no, the groups are not "pages". They may be displayed as a page but in reality they are groups of elements in a form. So there is no such thing as http://myLimeSurveys/index.php?group=2 .

The closest you could come to that would be to use JavaScript to advance the form
document.limesurvey.move.value = '2';
document.limesurvey.submit();
but as far as I know, that will only work if the group has already been visited.

I don't understand the problem with using a question and <a href='docs.limesurvey.org/tiki-index.php?page=Setting%20conditions'>conditions</a> to display the appropriate group. It doesn't matter if the questions are mandatory (except the group selection question).

Hi Tom,

I'm looking for how I could jump to a question group using something like this code that you posted, but it isn´t working. I´m validating the answers in the end of the survey, so If the user forgot to fill some mandatory question, The survey jumps (goes back) to the correspondent group of question.
document.limesurvey.move.value = '2';
document.limesurvey.submit();

Do I need enable some option for it code works well?
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.294 seconds