Welcome to the LimeSurvey Community Forum

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

PASSTHRU problem, not working

More
5 years 2 weeks ago #204358 by dawidmos
Hi!

I have problem with PASSTHRU. Im trying to pass parameter from URL into question text. Not working. I already use this before like own token but never to question text. I have pass parameter on start survey "&newtest=Y&parm1=klekle". I already put this parm1 in panel integration. On survey question text im writing {PASSTHRU:parm1} or {parm1} - error variable. Can any have any idea?


Regards,
David.
The topic has been locked.
More
5 years 2 weeks ago #204359 by tpartner
Does the question that you are trying to populate have question-code "parm1"?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 2 weeks ago #204360 by dawidmos
No. I was thinking its not matter.
The topic has been locked.
More
5 years 2 weeks ago #204361 by dawidmos
Its some kind security limited?
The topic has been locked.
More
5 years 2 weeks ago #204362 by dawidmos
I need pass parameter to question - not subquestion or answer.
The topic has been locked.
More
5 years 2 weeks ago #204363 by tpartner
You need to load a question with the parameter before it can be use in tailored text.

- www.limesurvey.org/manual/URL_fields#Pre...using_GET_parameters

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 2 weeks ago #204364 by dawidmos
Still problem - maybe i don't understand something but:
https://page/surveys/2018/index.php/survey/index/sid/363923/newtest/Y/lang/en?q1=test1&parm1=test2
Getting result:
q1
(This question is mandatory)
PASSTHRU : parm1
Choose one of the following answers
aaaa
PASSTHRU : parm1
The topic has been locked.
More
5 years 2 weeks ago #204365 by dawidmos
I did read this page before i post. I think doing something wrong -- too many lime survey per day in last days ;)
The topic has been locked.
More
5 years 2 weeks ago #204368 by Joffm
Replied by Joffm on topic PASSTHRU problem, not working
You should better show us your tries.
Attach a lss export of your test survey.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 1 week ago - 5 years 1 week ago #204377 by tpartner
1) Totally ignore the passthrough feature, it is not for this.

2) Insert a short-text question with code "parm1" into your first survey group.

3) After testing, you can hide that question.

4) Place {parm1} in the text of your following question.

5) Enter the survey with this appended to the URL: &parm1=myValue.

6) You will see "myValue" loaded into the parm1 question and also in the text in your following question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 1 week ago by tpartner.
The topic has been locked.
More
5 years 1 week ago #204378 by dawidmos
Sure. Version 3.15
The topic has been locked.
More
5 years 1 week ago #204379 by dawidmos
Ok i understand but still not working. Trying passthru and simple version of this.
The topic has been locked.
More
5 years 1 week ago - 5 years 1 week ago #204383 by Joffm
Replied by Joffm on topic PASSTHRU problem, not working
Please, follow the instructions.
Totally ignore the passthrough feature, it is not for this.
PASSTHRU is used for something different.

Code:
https://myhost/lime3/index.php/363923?lang=en&parm1=This%20is%20my%20parameter


File Attachment:

File Name: limesurvey...3923.lss
File Size:17.13 KB


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 1 week ago by Joffm.
The topic has been locked.
More
5 years 1 week ago #204387 by dawidmos
Ok - i will ignore it. Thank You for quick help. I did try your lss but still getting some errors. Its strange for me - LS is working perfect on another suverys.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose