Welcome, Guest
Username: Password: Remember me

TOPIC: Pull data from questions on another page.

Pull data from questions on another page. 2 years 3 months 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. 2 years 3 months ago #101371

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4349
  • Thank you received: 612
  • Karma: 195
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. 2 years 3 months ago #101380

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8192
  • Thank you received: 1117
  • Karma: 331
The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months 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.





Last Edit: 2 years 2 months ago by amazon3d. Reason: Add photos
The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months ago #101407

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4349
  • Thank you received: 612
  • Karma: 195
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. 2 years 2 months 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: 2 years 2 months ago by amazon3d.
The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months 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.


The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months ago #101460

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 8192
  • Thank you received: 1117
  • Karma: 331
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. 2 years 2 months 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. 2 years 2 months ago #101495

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4349
  • Thank you received: 612
  • Karma: 195
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.

Pull data from questions on another page. 2 years 2 months ago #101503

  • amazon3d
  • amazon3d's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Below is the page text, not sure how I reference it though.


The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months ago #101504

  • amazon3d
  • amazon3d's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
I was able to figure it out, apparently I just had to keep re-reading it. the
{Patient_Name_Patien_FirstName} {Patient_Name_Patien_MiddleName} {Patient_Name_Patien_LastName}
The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months ago #101505

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4349
  • Thank you received: 612
  • Karma: 195
So I assume it works now?
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.
The following user(s) said Thank You: amazon3d

Pull data from questions on another page. 2 years 2 months ago #101512

  • OMdev
  • OMdev's Avatar
  • Offline
  • Gold Lime
  • Posts: 241
  • Thank you received: 25
  • Karma: 14
Here also .. if you put each question of your survey in separate group then you can use group description as place holder. You just have to use tailoring in group description.
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.

Pull data from questions on another page. 2 years 2 months ago #101527

  • amazon3d
  • amazon3d's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Holch,

Yes it is working wonderfully!

Thank you!

And I will keep that in mind Trivender.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.220 seconds