Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Pull data from questions on another page.

Pull data from questions on another page. 10 months 1 week ago #101369

  • amazon3d
  • amazon3d's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Let me say I am very impressed with LimeSurvey. The feature set is incredible and I hope more features keep coming.

I wanted to know if there is a way to pull session data to get information from a previous question/answer to use in the template so a question like who is administrating this survey? A: Jason Borune & Who is taking this survey? A: James Bond. and on the next page be able to take those answers and place Proctor: &adminname& - Subject: &surveyeename&. I'd like to do this so survey's do not get confused/mixed up as they are really long.

Also is there a way to do a page that displays all the results from the survey or portions? Like a is all this correct page?
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101371

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2670
  • Thank you received: 322
  • Karma: 121
Where should this information be placed? Within the question text this is no problem with the Expression Manager.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101380

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6331
  • Thank you received: 817
  • Karma: 243
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101404

  • amazon3d
  • amazon3d's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
What I am look to do is have the information as a header on all subsequent pages after the question.
Below is an example of what I am looking to do.

hbd9ebd2.PNG


h7da9ab0.PNG


hb5d0aca.png
Last Edit: 10 months 1 week ago by amazon3d. Reason: Add photos
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101407

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2670
  • Thank you received: 322
  • Karma: 121
Hmmm, I am not sure if this will be possible. I don't know if the placeholders from the Expression Manager can e implemented into the template files. And if so, problem would be that it would also be there when the data is still not available. So this might cause some problems. But I guess you will have to test that. Try the examples from Dennis in the template files and within a question to check if it works correctly in the question. You then need to find a solution on how to avoid errors for the pages before the questions with the respective informations have been filled out.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101413

  • amazon3d
  • amazon3d's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
[if [Provider_Name} ! = "" then echo "Select Provider" else echo {Provider_Name.shown}]

How would I term something like the above, also how do I reference a multi answer answer? (multiple text/etc)
Last Edit: 10 months 1 week ago by amazon3d.
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101415

  • amazon3d
  • amazon3d's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
I was able to get the Provider field to work, however the name part I cannot get going. I have tried many forms of expression.


hf37e666.PNG
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101460

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6331
  • Thank you received: 817
  • Karma: 243
I think you can use {QCODE} in template.pstpl page without problem (i use it to fill some javascript var).

But you have error whene is not set: thenh you must see if there are something.

Trye:
{if(QCODE.relevanceStatus,QCODE.NAOK,"")}
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101468

  • amazon3d
  • amazon3d's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Well I don't actually need to use it in the template after looking, I built it into the form description.
I do need to access values inside of array's and multi text questions. Haven't had any luck with that.
The administrator has disabled public write access.

Pull data from questions on another page. 10 months 1 week ago #101495

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2670
  • Thank you received: 322
  • Karma: 121
usually each question has a page where you can get information about the Expression Manager and the survey structure. The symbol says "QA". There you should find the code on how to reference the subquestions of a multiple text question or arrays.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.130 seconds
Donation Image