Welcome to the LimeSurvey Community Forum

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

Slider question not showing the "total"

  • bastin2021
  • bastin2021's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 days ago #242724 by bastin2021
Slider question not showing the "total" was created by bastin2021
==================
(Write here your question/remark)Please help us help you and fill where relevant:
Your LimeSurvey version: 5.2.14+220214
Own server or LimeSurvey hosting:  [url] ushift.tecnico.ulisboa.pt/limesurvey/admin [/url]  
Survey theme/template: Fruity Theme ( fruity)
==================

Hello all, I'm new to LS and I'm creating a slider option, I want people to use it to state how much they would pay for different services, in the preview page it works fine but it does not show the "total", it is not making the sum, how can I activate this option?

Also, is there a way to put the $ sign in the slider? 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 days ago #242725 by Joffm
Replied by Joffm on topic Slider question not showing the "total"
1. There's no option for this.
But show the total by yourself with ExpressionScript.
Like {sum(self.NAOK)}

2. Searching for something else I recently saw a workaround to do this.
So search the forum.

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: bastin2021

Please Log in to join the conversation.

  • bastin2021
  • bastin2021's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 3 days ago #242726 by bastin2021
Replied by bastin2021 on topic Slider question not showing the "total"
Thanks Joff, however, I have no idea how to use the ExpressionScript, where I'm supposed to paste that line of code?

I see you guys almost code everything in LS but I don't know how to access to that "module"

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 days ago - 1 year 2 days ago #242732 by Joffm
Replied by Joffm on topic Slider question not showing the "total"
Hi,

I have no idea how to use the ExpressionScript

Did you read the manual about it?
[url] manual.limesurvey.org/ExpressionScript_-_Presentation/en [/url]
Did you study the examples and the sample surveys?
[url] manual.limesurvey.org/ExpressionScript_sample_surveys/en [/url]

Well, to answer your questions:
1. You place the expression I showed above, whereever you want to display the total value. Up to you to style it with some css.
2. To add the $-sign put this in the source code of the question
Code:
<style type="text/css">
.tooltip-inner:before {
    content: "$ ";
}
</style>


May look like this
 

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 2 days ago by Joffm.
The following user(s) said Thank You: tpartner, bastin2021

Please Log in to join the conversation.

  • bastin2021
  • bastin2021's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 2 days ago #242748 by bastin2021
Replied by bastin2021 on topic Slider question not showing the "total"
Thanks again, I could manage to do it, now I understand better how LS works, the "hidden equation" option is also very useful,

Also, for the $ sign, I found another way, just put it as a prefix in the input.
The following user(s) said Thank You: tpartner

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 2 days ago #242753 by tpartner
Replied by tpartner on topic Slider question not showing the "total"

Also, for the $ sign, I found another way, just put it as a prefix in the input.

Oh, that's new (to me) and a nice improvement.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose