Array (numbers) highlights all subquestions when one is not answered

More
4 years 1 month ago - 4 years 1 month ago #105556 by NewIdeas
NewIdeas created the topic: Array (numbers) highlights all subquestions when one is not answered
Hey there!

I'm newbie with limesurvey, trying to settle my first questionnaire on this platform so sorry if question is silly :blush: Anyway, i couldn't find solution anywhere.
So the problem:
There is a mandatory question which is array (numbers) type with checkbox layout. Everything would be great, but if respondent misses one(or more) subquestions while answering, survey highlights ALL of the subquestions on y scale(pic added).



Anyone has an idea why? what to do/change so it would only highlight not answered subquestions?

Many thanks in advance!
Attachments:
Last Edit: 4 years 1 month ago by NewIdeas. Reason: attachement

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

More
4 years 1 month ago - 4 years 1 month ago #105567 by tpartner
tpartner replied the topic: Array (numbers) highlights all subquestions when one is not answered
That appears to be a bug. Please file a bug report and...
  1. Give as much information as possible.
  2. Provide step-by-step instructions how to reproduce the problem.
  3. Provide screenshots and/or a sample survey.
  4. Post the link to the bug here so we can follow the progress.

In the meantime, a workaround would be to add this to the end of template.js. It will remove the "errormandatory" class for any row that has at least one checked box.

$(document).ready(function(){
 
	$('.array-multi-flexi tr.checkbox-list .errormandatory').each(function(i) {
		if($(this).closest('tr.checkbox-list').find('input.checkbox:checked').length > 0) {
			$(this).removeClass('errormandatory');
		}
	});
});

.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 4 years 1 month ago by tpartner.

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

More
4 years 1 month ago #105569 by DenisChenu
DenisChenu replied the topic: Array (numbers) highlights all subquestions when one is not answered
I think , not sure, there are already a bug for this one.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

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

More
4 years 1 month ago #105571 by tpartner
tpartner replied the topic: Array (numbers) highlights all subquestions when one is not answered
I couldn't find one Denis. Do you have a link?

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

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

More
4 years 1 month ago #105578 by DenisChenu
DenisChenu replied the topic: Array (numbers) highlights all subquestions when one is not answered

tpartner wrote: I couldn't find one Denis. Do you have a link?

No,

Really no, but maybe it's just a forum topic ... I search too, don't find it.

Best is to make a new one.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

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!