Pull data from questions on another page.

More
3 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?

Please Log in to join the conversation.

More
3 years 4 months ago #101371 by holch
Where should this information be placed? Within the question text this is no problem with the Expression Manager.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 4 months ago #101380 by DenisChenu

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).

Please Log in to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #101404 by amazon3d
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.





Attachments:
Last Edit: 3 years 4 months ago by amazon3d. Reason: Add photos

Please Log in to join the conversation.

More
3 years 4 months ago #101407 by holch
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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #101413 by amazon3d
[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: 3 years 4 months ago by amazon3d.

Please Log in to join the conversation.

More
3 years 4 months ago #101415 by amazon3d
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:

Please Log in to join the conversation.

More
3 years 4 months ago #101460 by DenisChenu
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 (or search sondages pro).

Please Log in to join the conversation.

More
3 years 4 months ago #101468 by amazon3d
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.

Please Log in to join the conversation.

More
3 years 4 months ago #101495 by holch
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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 4 months ago #101503 by amazon3d
Below is the page text, not sure how I reference it though.


Attachments:

Please Log in to join the conversation.

More
3 years 4 months ago #101504 by amazon3d
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}

Please Log in to join the conversation.

More
3 years 4 months ago #101505 by holch
So I assume it works now?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: amazon3d

Please Log in to join the conversation.

More
3 years 4 months ago #101512 by first
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

Please Log in to join the conversation.

More
3 years 4 months ago #101527 by amazon3d
Holch,

Yes it is working wonderfully!

Thank you!

And I will keep that in mind Trivender.

Please Log in to join the conversation.