Welcome to the LimeSurvey Community Forum

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

Show survey data total

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174880 by DenisChenu
Replied by DenisChenu on topic Show survey data total
If you add {TOKEN:FIRSTNAME} in end page text directly : did it work ?

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
  • flasher44's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 6 months ago #174907 by flasher44
Replied by flasher44 on topic Show survey data total
No...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174913 by DenisChenu
Replied by DenisChenu on topic Show survey data total

flasher44 wrote: No...

?

Then there are an issue , i just test in end message an last version : it work.

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
  • flasher44's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 6 months ago #174927 by flasher44
Replied by flasher44 on topic Show survey data total
can you post a screenshot or copy of the code please ?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174936 by DenisChenu
Replied by DenisChenu on topic Show survey data total
Just in End message

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
  • flasher44's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 6 months ago #174956 by flasher44
Replied by flasher44 on topic Show survey data total
OK here is the content of my completed screen, on the submit.twig file.

Can you see what's wrong ?

Code:
 
{#
    LimeSurvey
    Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
    All rights reserved.
    License: GNU/GPL License v2 or later, see LICENSE.php
    LimeSurvey is free software. This version may have been modified pursuant
    to the GNU General Public License, and as distributed it includes or
    is derivative of works licensed under the GNU General Public License or
    other free or open source software licenses.
    See COPYRIGHT.php for copyright notices and details.
 
    (¯`·._.·(¯`·._.· Submit Content  ·._.·´¯)·._.·´¯)
 
    This page is displayed after user submits the survey.
    It could be, visually, very different (no header, etc).
 
    It shows the end text, assessments, print answer, and statistics.
 
    Data are in: aSurveyInfo.aCompleted and aSurveyInfo.aAssessments.
    To show this data, turn debug mode on and copy the following line to the end of the <body> element in this file:
    {{ dump(aSurveyInfo.aCompleted ) }}
 
    NOTE: This content is included inside mainrow.twig
    NOTE: see layout_global.twig for more infos
#}

{# include the form opening tag #}
<!-- main form -->
{{ include('./subviews/header/start_form.twig') }}
 
    {# This will display the script and the hidden inputs needed for Expression Manager #}
    {{ aSurveyInfo.EM.ScriptsAndHiddenInputs  }}
 
    <div class="{{ aSurveyInfo.class.submitwrapper }}" {{ aSurveyInfo.attr.submitwrapper }}>
        <div class='{{ aSurveyInfo.class.submitwrappertext }}' {{ aSurveyInfo.attr.submitwrappertext }}>
            {% if (aSurveyInfo.aCompleted.showDefault == true) %}
                <p {{ aSurveyInfo.attr.submitwrappertextpa }}>{{ gT("Thank you!") }}</p>
                <p {{ aSurveyInfo.attr.submitwrappertextpb }}>{{ gT("Your survey responses have been recorded.") }}</p>
            {% else %}
                {{ aSurveyInfo.aCompleted.sEndText }}
            {% endif %}
 
            {# Assessments #}
            {% if (aSurveyInfo.aAssessments.show) %}
                {{ include('./subviews/messages/assessments.twig') }}
            {% endif %}
 
            {#  Link to Print Answer Preview #}
            {% if (aSurveyInfo.aCompleted.aPrintAnswers.show == true) %}
                <!--  Link to Print Answer Preview -->
                <div class="{{ aSurveyInfo.class.submitwrapperdiva }}" {{ aSurveyInfo.attr.submitwrapperdiv }}>
                    <a href="{{ aSurveyInfo.aCompleted.aPrintAnswers.sUrl }}" class="{{ aSurveyInfo.class.submitwrapperdivaa }}" {{ aSurveyInfo.attr.submitwrapperdivaa }}>
                        {{ gT("Print your answers.") }}
                    </a>
                </div>
            {% endif %}
 
            {# Link to Public statistics #}
            {% if (aSurveyInfo.aCompleted.aPublicStatistics.show == true) %}
                <!-- Link to Public statistics -->
                <div class="{{ aSurveyInfo.class.submitwrapperdivb }}" {{ aSurveyInfo.attr.submitwrapperdivb }}>
                    <a href="{{ aSurveyInfo.aCompleted.aPublicStatistics.sUrl }}" class="{{ aSurveyInfo.class.submitwrapperdivba }}" {{ aSurveyInfo.attr.submitwrapperdivba }}>
                        {{ gT("View the statistics for this survey.") }}
                    </a>
                </div>
            {% endif %}
 
            {# Before LS3 Master, this should be replace by a Twig block logic #}
            {{ aSurveyInfo.aCompleted.sPluginHTML }}
 
            {# NOTE: not very clear what the old replacement keyword {URL} was doing  #}
            {% if (aSurveyInfo.aCompleted.sSurveylsUrl) %}
                <a href="{{ aSurveyInfo.aCompleted.sSurveylsUrl }}">{{ aSurveyInfo.aCompleted.sSurveylsUrlDescription }}</a>
            {% endif %}
 
            TOKEN:FIRSTNAME={TOKEN:FIRSTNAME}            
 
        </div>
    </div>
</form> <!-- main form -->
TOKEN:FIRSTNAME={TOKEN:FIRSTNAME}            
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174958 by DenisChenu
Replied by DenisChenu on topic Show survey data total
If you were on twig : need processString('{TOKEN:FIRSTNAME}')

But for start : try it directly inside end message to see if it's OK.

It's possible than it's OK inside end message but not in twig file : then can report an issue.

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
  • flasher44's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 6 months ago #174994 by flasher44
Replied by flasher44 on topic Show survey data total
So noboby has a clue to make it work on this file ?
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174997 by holch
Replied by holch on topic Show survey data total

So noboby has a clue to make it work on this file ?

You are either not reading what the helpers here write or you are not willing to.

Denis asked you to do a few things and you are ignoring it. How should they help you if you don't help them to help you? As they don't have access to your installation, what do you expect them to do?

They are currently trying to rule out any problems, but you are just ignoring what they are asking you to do, for example putting the code directly into the end message and see what happens. So far you have not presented the result of that.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago #174998 by holch
Replied by holch on topic Show survey data total
So, last attempt: put the following code directly into your end message (not in twig!) and nothing else and see what happens:
Code:
{TOKEN:FIRSTNAME}

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • flasher44
  • flasher44's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 6 months ago #175000 by flasher44
Replied by flasher44 on topic Show survey data total
For sure when put into the end message it works, but it was not the question asked.

But thanks for your help I'm going to use end file to make it easier with almost the same result.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 6 months ago - 5 years 6 months ago #175002 by DenisChenu
Replied by DenisChenu on topic Show survey data total

For sure when put into the end message it works, but it was not the question asked.

Yes, buit it's MY question … and you didn't answer …

Remind we help free here (and sometimes develop freely) … it's a community forum
Code:
{{ processString('{TOKEN:FIRSTNAME}') }}
work inside submit. This need {{ }} for twig …

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.
Last edit: 5 years 6 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose