Welcome to the LimeSurvey Community Forum

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

Multiple numerical input - sum of sliders broken

More
8 years 1 month ago #132252 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 :
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.
More
8 years 1 month ago #132263 by Peyu
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132264 by holch
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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132272 by tpartner
@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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132276 by holch
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132297 by DenisChenu
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.

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.
More
8 years 1 month ago #132454 by Peyu
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 1 month ago #132457 by DenisChenu
Replied by DenisChenu on topic Multiple numerical input - sum of sliders broken

Peyu wrote: I reported it as a bug here : bugs.limesurvey.org/view.php?id=10607

:kiss:
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.

Lime-years ahead

Online-surveys for every purse and purpose