Welcome to the LimeSurvey Community Forum

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

Bootstrap buttons, relevance equation and piping/jumping

More
5 years 3 months ago #178050 by SNiP
Hi,

I've prepared a survey (LS v. 3.0, SaaS) using Bootstrap buttons instead of radio-buttons. Jumping (hiding/showing questions) works fine with radio-buttons but not with Bootstrap buttons (fruity template). Does someone know how to use jumping with Bootstrap? Is it a bug or issue?

Many thanks in advance.

Grzegorz
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178056 by tpartner
How did you implement the bootstrap buttons?

Can you attach a small sample survey (.lss file) containing only the relevant questions?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 3 months ago #178083 by SNiP
Dear Tony,

thank you for your reply. I have attached a small sample containing two questions - one with radio and another with bootstrap buttons. In both cases, additional question should appear if the first answer is chosen. It doesn't work for bootstrap buttons, implemented using option "Bootstrap buttons" under "General options" --> "Question design".

Your further help will be very appreciated.

Best wishes,
Grzegorz

tpartner wrote: How did you implement the bootstrap buttons?

Can you attach a small sample survey (.lss file) containing only the relevant questions?

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178085 by tpartner
I can confirm that it's a bug. Please file a bug report and give a link here.

In the meantime, you can work around it by adding something like this to the end of your custom.js file:

Code:
$(document).on('ready pjax:scriptcomplete',function() {    
  $('.bootstrap-radio').on('change', function(e) {
    if($(this).is(':checked')) {
      checkconditions($(this).attr('value'), $(this).attr('name'), $(this).attr('type'));
    }
  });
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 3 months ago #178092 by SNiP
Dear Tony,

thank you for your assistance. I will submit a bug report.

Best wishes
Grzegorz
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose