Welcome to the LimeSurvey Community Forum

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

Others field can't be activated in multiple choice

More
8 years 7 months ago - 8 years 7 months ago #135935 by SBind
Hello,
i got the problem, that if i configure a multiple choice question with the 'others' field, this checkbox can't be activated by click. Otherwise it's automatically activated if i enter text in the field behind. Is there a possibility to change this behavior? Maybe that if i click the checkbox the textfield gets active? ('Sonstige' means 'others' in german.)



Version is 2.50+ Build 160430

Thanks,
Steffen
Attachments:
Last edit: 8 years 7 months ago by SBind.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #135937 by Mazi
I think this is intended default behavior.

Have a look at the advanced question settings, maybe you can change it there.

Best regards/Beste Grüße,
Dr. Marcel Minke
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 7 months ago #135939 by DenisChenu
There are no DB colun for other except the inpyt:text : intended behaviour

If input text is empty : Other is empty

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
8 years 7 months ago - 8 years 7 months ago #135941 by SBind
I just wondered because the behavior in a radio list is if you click the radio-button it's activated and a lot of our participants don't get how it works.

Is it possible to set some default text for the others field?
Last edit: 8 years 7 months ago by SBind.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #135944 by tpartner

I just wondered because the behavior in a radio list is if you click the radio-button it's activated and a lot of our participants don't get how it works.

You can use CSS to hide that checkbox as Denis does in some templates.

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
8 years 7 months ago #135945 by SBind
This sounds great. Thanks a lot.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 7 months ago #135948 by DenisChenu
Use visibility:hidden : it's the best solution.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #135956 by tpartner
Why not:
position: absolute;
left: -9999em:

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 7 months ago #135957 by DenisChenu
Because : with your solution :
1 : you hide it from the screen but not from screen reader : screenreader really don't need it (but fixed in last version with aria-hidden=true)
2 : with visibility:hidden : you leave tye place where the input are : the "Other lable" seems at same place than other Sub question. (screnshot)



After a lot of test : a lot of user this it's cleaner like this :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: tpartner
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #135960 by tpartner
Fair enough.

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
8 years 7 months ago - 8 years 7 months ago #135963 by SBind
I tried to add the following to template.css:
Code:
.other-checkbox
{
    visibility:hidden;
}

and firebug shows, that it's used, but the checkbox is NOT hidden, any ideas? Seems like the checkbox class of the parent div is the matter...
Last edit: 8 years 7 months ago by SBind.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #135965 by tpartner
You need to hide the pseudo-element too:

Code:
.multiple-opt .other-checkbox {
  visibility: hidden;
}
 
.multiple-opt .checkbox label::before {
  display: none;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose