Welcome, Guest
Username: Password: Remember me

TOPIC: HTML Checkbox behaviour

HTML Checkbox behaviour 2 years 10 months ago #65691

  • muellers
  • muellers's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
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!
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65854

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5301
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65867

  • muellers
  • muellers's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
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
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65870

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5301
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65875

  • muellers
  • muellers's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
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!
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65879

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2568
  • Thank you received: 291
  • Karma: 106
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?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65911

  • muellers
  • muellers's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
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.
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65928

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2568
  • Thank you received: 291
  • Karma: 106
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... ;-)
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65933

  • muellers
  • muellers's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 18
  • Karma: 0
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: 2 years 10 months ago by muellers.
The administrator has disabled public write access.

Re: HTML Checkbox behaviour 2 years 10 months ago #65942

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5301
  • Thank you received: 291
  • Karma: 247
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.174 seconds
Donation Image