Check out the LimeSurvey source code on GitHub!

HTML Checkbox behaviour

More
5 years 5 months ago #65691 by muellers
Hi,

I noticed, that a HTML coded Chekbox in the codewindow from a questions behavies unexpected.

Especially clicking directly in the checkbox does nothing. Only clinking the "BoxDescription" activates the box.
<input type="checkbox" onclick="javascript:toggleCheckBox();" name="xy >Boxdescription

Furthermore the area the checkbox is checked by clicking around is very wide.

Is there any workaround to get both issues working properly?
Any suggestions welcome!

Greetings!

Please Log in to join the conversation.

More
5 years 5 months ago #65854 by Mazi
I think it makes it easier for the user if he/she doesn't have to tick the box but could alternatively click the answer text.
But if a click on the box doesn't do anything that is indeed a weird behavior.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 5 months ago #65867 by muellers
Yes, of course for answers of the typical question layout this behavoiur is very useful. But in this case it is an extra checkbox to verify that the user has done something, before he is able to continue the survey...

The wrong behaviour occours NOT in IE.
Temporarly removing the "jquery" ressource on the server get the checkbox working with Firefox. But I dont think this is a solution...

Any suggestions for a workaround?

Geetings

Please Log in to join the conversation.

More
5 years 5 months ago #65870 by Mazi
Please test if the problem still exists at the latest release . If so please open a ticket at the Bugtracker and...
  1. Give as much information as possible
  2. Attach your survey. You can mark your ticket "private" so that only the developers will be able to take a look at it.
  3. Provide step-by-step instructions how to reproduce the problem.
  4. If possible/helpful please provide screenshots

Afterwards please post the link to the Bugtracker so we can follow the progress.

Thanks!


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 5 months ago #65875 by muellers
to change the survey version is not possible at the moment so I have to build a test area soon.

Just testet the IE WITH jquery accessable - same problem. Even tried the newest one of jquery.
Checkbox not checked by clicking IN the box - only in the area around. :-(

Any ideas what to modify the the "click around" feature is turned off?

Greetings and thank in advance!

Please Log in to join the conversation.

More
5 years 5 months ago #65879 by holch
So I understand you have a checkbox that is not part of Limesurvey, that was included via HTML in the question text, right?

Why don't you use a question with just one option and conditions? Wouldn't that be a solution?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 5 months ago #65911 by muellers
Including a Linmesurvey Checkbox was my first thought.. but it did not work yet with the javascript.

I've implemented a flash applet as "question". The user has to draw some curves an has to click on the "save" button in the applet.

By default the "next" button on this survey part is disabled by javascript.
The Checkbox is a security feature, which enables the next button by script. It is for the reason to ensure the user doesn't click the next button by accident and loses all drawing he made.

Thats why I use a html checkbox. Concept works, but the checkbox isn't checked by clicking it directly. This is highly confusing the user - who probably skips the hole survey..


Greets.

Please Log in to join the conversation.

More
5 years 5 months ago #65928 by holch
You could use a multiple choice question with one answer, make it mandatory with a minimum of 1 answer. Then the user shouldn't be abel to move on.

Of course it doesn't prevent someone to click the next button by accident, but then we would need something like that on every page... ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #65933 by muellers
Yes of course, tried this before the solution above. But when getting the message the user has to answer the question the page is being reloaded so the applet is reloades too - and everything is lost either. ;-)
Last Edit: 5 years 5 months ago by muellers.

Please Log in to join the conversation.

More
5 years 5 months ago #65942 by Mazi
I overread that you are using a custom checkbox and no Limesurvey checkbox from such a question type.

If this is custom code, how about embedding the text in a DIV element and then code some JS which ticks the box if the text in the DIV next to it gets clicked?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form