- Posts: 6
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple numerical input - sum of sliders broken
- Peyu
- Topic Author
- Offline
- New Member
Less
More
8 years 1 month ago #132252
by Peyu
Multiple numerical input - sum of sliders broken was created by Peyu
Hi,
in one of the last update of Limesurvey 2.50+ (between built 160215 and 160225), you changed the slider library used in question type "multiple numerical input".
You were using before the jquery slider library and now you use bootstrap_slider.
Since then the "sums" are broken: if I set an equals/mininum/maximum sum, I just see below the sliders the following expression :
How can I fix it ?
in one of the last update of Limesurvey 2.50+ (between built 160215 and 160225), you changed the slider library used in question type "multiple numerical input".
You were using before the jquery slider library and now you use bootstrap_slider.
Since then the "sums" are broken: if I set an equals/mininum/maximum sum, I just see below the sliders the following expression :
Code:
{ round((100 - sum(754819X3X2591.NAOK, 754819X3X2592.NAOK, 754819X3X2593.NAOK, 754819X3X2594.NAOK, 754819X3X2595.NAOK, 754819X3X2596.NAOK)), 0) } Total: { round(sum(754819X3X2591.NAOK, 754819X3X2592.NAOK, 754819X3X2593.NAOK, 754819X3X2594.NAOK, 754819X3X2595.NAOK, 754819X3X2596.NAOK), 0) }
How can I fix it ?
The topic has been locked.
- Peyu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
8 years 1 month ago #132263
by Peyu
Replied by Peyu on topic Multiple numerical input - sum of sliders broken
I find out that if I put the code that limesurvey generates (above) into the question body, it gets replaced by the value on load. It's not interactive because the event "keyup" on the input is never fired, because bootstrap slider replace the input with its own structure. If you add this jquery code in document ready, it does the trick (259 is the qid of my question) :
Code:
$("div#question259 input").on( "slide slidechange change", function( event, ui ) { fixnum_checkconditions( $(this).bootstrapSlider('getValue'), $(this).attr('name'), $(this).attr('type')); });
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
8 years 1 month ago #132264
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Multiple numerical input - sum of sliders broken
I think this is worth a bug report.
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.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
8 years 1 month ago #132272
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 Multiple numerical input - sum of sliders broken
@c_schmitz or @LouisGac, Why did we switch from jQuery UI??? This will likely destroy many workarounds!
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11658
- Thank you received: 2742
8 years 1 month ago #132276
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Multiple numerical input - sum of sliders broken
I don't think they will see this. Their usernames are lot linked.
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.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
8 years 1 month ago #132297
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 Multiple numerical input - sum of sliders broken
Hi,
I think the callto bootstrap must be linked to cssframework : github.com/LimeSurvey/LimeSurvey/blob/ma...nimal-config.xml#L26
And allow jquery-ui to cssframework.
I think the callto bootstrap must be linked to cssframework : github.com/LimeSurvey/LimeSurvey/blob/ma...nimal-config.xml#L26
And allow jquery-ui to cssframework.
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.
- Peyu
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 1
8 years 1 month ago #132454
by Peyu
Replied by Peyu on topic Multiple numerical input - sum of sliders broken
I reported it as a bug here :
bugs.limesurvey.org/view.php?id=10607
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
8 years 1 month ago #132457
by DenisChenu
A thank you and a karma point
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 Multiple numerical input - sum of sliders broken
:kiss:Peyu wrote: I reported it as a bug here : bugs.limesurvey.org/view.php?id=10607
A thank you and a karma point
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.