Check out the LimeSurvey source code on GitHub!

"other" option in Dropdown list

More
5 years 11 months ago #58311 by luge
Hi everyone,

I've been trying to use a drop down list with an "other" option [with comment, but non mandatory].
It works fine as long as I set the Format to "group by group" in the presentation & navigation setting of the survey.
If i switch to "question by question", one can still select the "other" answer, but the comment box doesn't show. If one clicks next and then comes back to the question, the comment box is present.
Any idea as to why this happens? And how to fix it?

Thanks,

Luge
NB: I know there's probably (haven't tried yet) a workaround by either adding a filter to "other" and a short text ansewer OR by creating a group for each question and defining format as "group by group". The former isn't really suited to a question by question survey, the latter has some appeal to it but I have quite a few questions and the group titles are used to provide information (so i would have to repeat the same title several times).

Please Log in to join the conversation.

More
5 years 11 months ago #58323 by Mazi
Which Limesurvey version do you use?

Can you post a link to a test survey?


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 11 months ago #58327 by luge
Here is the link:
forswebmail.unil.ch/limesurvey/index.php?sid=25914&lang=en

There's no question text I think, just the drop down list. 3 times the same liste.


I'm using version 1.87 (8338)

Please Log in to join the conversation.

More
5 years 11 months ago #58331 by tpartner
It looks like you have a JavaScript error preventing the display of the text input. Can you test with the shipped bluengrey template (I think that's the one you copied).

If it's still broken, you should update to 1.90 - I tested with it and all is fine.

Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
5 years 11 months ago #58352 by luge
Ok, I ve tried with the original template, and it doesn't work (also tested with the default template, doesn't work either).

I'm concerned about the export format change in version 1.90 (.csv/.lss), but that's not the right place to ask about it i guess.

Thanks for your answers!

Luge

Please Log in to join the conversation.

More
5 years 11 months ago #58357 by DenisChenu

luge wrote: Ok, I ve tried with the original template, and it doesn't work (also tested with the default template, doesn't work either).

I just testing the first page , and the "other" input box appear if i select other.

use Firefox and Chromium, i select ailleurs, trés loin, la sieste for the other answer, and submit my answers :)

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).

Please Log in to join the conversation.

More
5 years 11 months ago #58359 by tpartner
Yeah, it's working in group-by-group mode.

luge, can you put it back to question-by-question with the default template for me to test fo the javaScript error?

Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
5 years 11 months ago #58362 by luge
Sure, it's back up on a Q by Q format.

Sorry about that, I was trying to see in the code page what was different between Q by Q and G by G formats.
But I don't know Javascript so I couldn't really see that...

Luge

Please Log in to join the conversation.

More
5 years 11 months ago #58363 by tpartner
Okay, the same error is occuring. It seems to be a bug in 1.87 - the noop_checkconditions function is not included but is being called when a dropdown is clicked. This prevents any subsequent scripts from running (like the showhideother function).

Set up your survey to use JavaScript and add the following to the source of the group description:
<script type="text/javascript">
	function noop_checkconditions(value, name, type) {
	}
</script>

Cheers,
Tony Partner

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

Please Log in to join the conversation.

More
5 years 11 months ago #58369 by luge
So I tried your solution, it doesn't work in the group description. However if you put it in the question text field, it works!
The problem if you put it in the group description is that it comes as an intermediary screen between start page and question page due to the Q by Q format.


It's up and running now, if you want to try again. I put the script only in the first question, so we can see the difference.

Thanks a lot!

Please Log in to join the conversation.

More
5 years 11 months ago #58371 by tpartner
Cool.

I thought the group description was displayed on every page - I never use question-by-question so stand corrected.

Cheers,
Tony Partner

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

Please Log in to join the conversation.

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