- Posts: 52
- Thank you received: 4
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Show survey data total
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
5 years 6 months ago #174689
by flasher44
Replied by flasher44 on topic Show survey data total
It does not work … Is it because I have only numbers as x and y axis ?
The topic has been locked.
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 4
5 years 6 months ago #174691
by flasher44
Replied by flasher44 on topic Show survey data total
IT WORKS !!!!
Thank you so much for your help guys !!!
Thank you so much for your help guys !!!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 6 months ago - 5 years 6 months ago #174706
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Show survey data total
Phew!
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 6 months ago by tpartner.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 6 months ago #174739
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Show survey data total
And what did you change? After trying everythingflasher44 wrote: IT WORKS !!!!
Thank you so much for your help guys !!!
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 4
5 years 6 months ago #174756
by flasher44
Replied by flasher44 on topic Show survey data total
The print option display … LOL
The topic has been locked.
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 4
5 years 6 months ago #174757
by flasher44
Replied by flasher44 on topic Show survey data total
I'm trying to personalize your script, and I would like to get the display of firstname, lastname and survey name, here what I did, none value are returned for names ...
Code:
<div> {% set bird1SGQA = processString('{SPECIES_BI1_SQ001.SGQA}') %} {% set aResponses = getAllTokenAnswers(aSurveyInfo.sid) %} {% set responseSum = 0 %} {% set responseCount = 0 %} {% set responseToken = '' %} {% set responseFirstname = '' %} {% set responseLastname = '' %} {% for response in aResponses %} {% if (response[bird1SGQA] != '') %} {% set responseSum = responseSum + response[bird1SGQA]|number_format %} {% set responseCount = responseCount + 1 %} {% endif %} {% if (loop.index == 1) %} {% set responseToken = response['token'] %} {% endif %} {% if (loop.index == 1) %} {% set responseToken = response[firstname] %} {% endif %} {% if (loop.index == 1) %} {% set responseToken = response[lastname] %} {% endif %} {% endfor %} {% if (responseCount > 0) %} There are {{ responseCount }} valid responses for Q1, {{ lastname }} {{ firstname }}with token value {{ responseToken }}. <br /> The sum of all valid responses is {{ responseSum }}. <br /> The average of all valid responses is {{ (responseSum/responseCount) }}. {% endif %} </div>
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 5 months ago #174763
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Show survey data total
The token firstname and lastname are not returned by the getAllTokenAnswers(aSurveyInfo.sid)[\i] function.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 4
5 years 5 months ago #174767
by flasher44
Replied by flasher44 on topic Show survey data total
Si what is the solution ? {FIRSTNAME} does not work either in the completed page ...
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 5 months ago #174781
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Show survey data total
Try {TOKEN:FIRSTNAME}.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
5 years 5 months ago #174784
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 , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Show survey data total
or processString('{TOKEN:FIRSTNAME}') in a twig filetpartner wrote: Try {TOKEN:FIRSTNAME}.
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.
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 4
5 years 5 months ago #174788
by flasher44
Replied by flasher44 on topic Show survey data total
None are working ...
The topic has been locked.
- flasher44
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 4
5 years 5 months ago #174828
by flasher44
Replied by flasher44 on topic Show survey data total
Nobody knows how to return in the completed page, the firstname, lastname and forum name ?
I would like a message after survey completion :
Thank you Paul Newman, for your participation at "BIRD COUNT SURVEY".
I would like a message after survey completion :
Thank you Paul Newman, for your participation at "BIRD COUNT SURVEY".
The topic has been locked.