Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Pull data from questions on another page.

  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #101369 by amazon3d
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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago #101371 by holch
Replied by holch on topic Pull data from questions on another page.
Where should this information be placed? Within the question text this is no problem with the expression manager.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago #101380 by DenisChenu
Replied by DenisChenu on topic Pull data from questions on another 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 , plugin development .
I don't answer to private message.
The topic has been locked.
  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago - 10 years 4 months ago #101404 by amazon3d
Replied by amazon3d on topic Pull data from questions on another page.
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.





Last edit: 10 years 4 months ago by amazon3d. Reason: Add photos
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago #101407 by holch
Replied by holch on topic Pull data from questions on another page.
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago - 10 years 4 months ago #101413 by amazon3d
Replied by amazon3d on topic Pull data from questions on another page.
[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 years 4 months ago by amazon3d.
The topic has been locked.
  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #101415 by amazon3d
Replied by amazon3d on topic Pull data from questions on another page.
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.


Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago #101460 by DenisChenu
Replied by DenisChenu on topic Pull data from questions on another page.
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,"")}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #101468 by amazon3d
Replied by amazon3d on topic Pull data from questions on another page.
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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 4 months ago #101495 by holch
Replied by holch on topic Pull data from questions on another page.
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #101503 by amazon3d
Replied by amazon3d on topic Pull data from questions on another page.
Below is the page text, not sure how I reference it though.


Attachments:
The topic has been locked.
  • amazon3d
  • amazon3d's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #101504 by amazon3d
Replied by amazon3d on topic Pull data from questions on another page.
I was able to figure it out, apparently I just had to keep re-reading it. the
Code:
{Patient_Name_Patien_FirstName} {Patient_Name_Patien_MiddleName} {Patient_Name_Patien_LastName}
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose