Bootstrap buttons, relevance equation and piping/jumping

More
11 months 1 week 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

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
11 months 1 week 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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
11 months 1 week 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?

Attachments:

Please Log in or Create an account to join the conversation.

More
11 months 1 week 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:

$(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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
11 months 1 week 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, LouisGac

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!