Welcome to the LimeSurvey Community Forum

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

Reset Text Box with Exclusive Option

  • BBCMResearch
  • BBCMResearch's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #146210 by BBCMResearch
Reset Text Box with Exclusive Option was created by BBCMResearch
I have a multiple choice question with an "Other" option and also a separate exclusive option. When the exclusive option is checked, I have a script that unchecks all previously selected answers, however it doesn't clear text from the Other option.

Is there a way that I can both uncheck other boxes and also reset the text box in the other option?

Thanks!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 4 months ago #146231 by DenisChenu
Replied by DenisChenu on topic Reset Text Box with Exclusive Option
Hi,

Why do this ? I really think 'Don't do this ! '...
LS core do this a long time ago BUT : it's not cool for users. I explain :
- You check all you need, put a long text in other
- Check BY ERROR the exclusive option
- You need to redo all ......

Alternative solution :
- Add CSS class to you question 'hidden-when-disabled'
- Add this lines in your template.css
Code:
.hidden-when-disabled [disabled]{visibility:hidden;opacity:0}

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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago #146248 by holch
Replied by holch on topic Reset Text Box with Exclusive Option
I personally find it also weird that Limesurvey doesn't uncheck given answers when clicked on the exclusive option. As a survey taker you always wonder if those greyed out, but still checked, boxes will be recorded or not. I understand that it can be annyoing when clicked by mistake, but hey, then it was my mistake and I was stupid and I have to do it again. At least it is explainable. What is not explainable for a normal survey taker is why the boxes are greyed out but still checked.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 4 months ago #146253 by tpartner
Replied by tpartner on topic Reset Text Box with Exclusive Option
I agree with holch - I would prefer to have the boxes unchecked.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • BBCMResearch
  • BBCMResearch's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 4 months ago #146273 by BBCMResearch
Replied by BBCMResearch on topic Reset Text Box with Exclusive Option
That's exactly right. I'm programming this survey for a client, and when they first saw the checkboxes were only greyed out, they flipped and thought that those answers were still being recorded. Now, even though I have the checkboxes reset, they still think their string answers are being recorded.

The default display for the exclusive option, at least in my circumstance, worries my client and makes me look like I'm bad at my job.
The topic has been locked.
More
8 years 4 months ago #146276 by jelo
Replied by jelo on topic Reset Text Box with Exclusive Option

holch wrote: At least it is explainable. What is not explainable for a normal survey taker is why the boxes are greyed out but still checked.

But LimeSurvey UX is driven by developer minds, not survey creators or survey takers. As long as developers don't try different survey packages they won't understand why users might have different expectations.
There is no shared vision about what is necessary for a survey system.
How to accept or deny feature requests without such a vision?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
8 years 4 months ago - 8 years 4 months ago #146280 by DenisChenu
Replied by DenisChenu on topic Reset Text Box with Exclusive Option

jelo wrote: As long as developers don't try different survey packages they won't understand why users might have different expectations.

For information, i didn't take any decision here : but in 1.92 : one of my client (B2C client) say a lot of his participant complain about the "uncheck" by default system.
Like the 'empty' text in Multiple choice with comment : here : when i fix it , i add a Question Attribute (work in 2.06), and open the choice.

In SkeletonQuest : [type=checkbox][disabled]{opacity:0} is done by default.

But if you really want : please : add a new Question attribute and github.com/LimeSurvey/LimeSurvey/pulls

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.
Last edit: 8 years 4 months ago by DenisChenu.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose