Welcome to the LimeSurvey Community Forum

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

Access from Twig to URL

More
1 week 1 day ago #241443 by DenisChenu
Replied by DenisChenu on topic Access from Twig to URL

{{ processString('{CD}') }}

gives "3", but onliy within the group containing question CD
 
Before it break ?

A good improvement must be done here …

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 following user(s) said Thank You: erichn

Please Log in to join the conversation.

More
1 week 1 day ago #241449 by erichn
Replied by erichn on topic Access from Twig to URL

{{ processString('{CD}') }}

gives "3", but onliy within the group containing question CD

 
Before it break ?

A good improvement must be done here …


Ohhh, just wait a bit... I tried this again with one group before and one group after the group CD (actually CD was in the last group).

Start: CD not seen (empty?)
Group 1: again no CD
Group 2: CD has the value from URL (this is the group containing CD)
Group 3: CD still has the same value

So, if I find no solution with a global variable, I have to shift question CD to the first page. I would like to get around this, because actually CD is located in the group, it controls - better for maintenance in some future.

Anyway, I've got a solution. Thanks to you and also to tpartner for your help!

Kind regards,
Erich


 

Please Log in to join the conversation.

More
6 days 20 hours ago #241515 by erichn
Replied by erichn on topic Access from Twig to URL
Thank you, as far as I found, this is the only solution. For minimum of change I didn't move question CD, but inserted a new question "PAR" at the start of the survey. PAR is also marked as invisible and gets it's information (here the same, as CD) via URL. The URL now looks like

someserver.de/q/index.php/799?lang=en&CD=3&PAR=3

Only one last problem remains, the new column PAR in the output. This should be easily deleted by the following processing. As the Survey and some Childs are already running, some additional logic will be needed to distinguish old an new output. A nice solution would be, if Limesurvey didn't export the new question PAR. Is it possible to suppress output of a question?

Thank you and kinde regards
Erich


 

Please Log in to join the conversation.

More
6 days 19 hours ago #241516 by tpartner
Replied by tpartner on topic Access from Twig to URL
Please read the manual. You can select which columns to export - manual.limesurvey.org/Exporting_results/...n_.28Excel.2F.csv.29

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: erichn

Please Log in to join the conversation.

More
6 days 15 hours ago #241523 by erichn
Replied by erichn on topic Access from Twig to URL
As I'm using RPC2, I looked at the wrong place. But here it is also: "export_responses(...array $aFields = ...)". Nearly everything is there...

Thank you for RTFM
Erich

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose