Answer sourcing to question - hide space and get content in "others"

More
5 years 3 months ago #74022 by Newbeedu
Newbeedu created the topic: Answer sourcing to question - hide space and get content in "others"
Question 1 is a multiple choice with others box, having 22 options for multiple choice.

Selections from this question is part of question 2. I have used help from www.limesurvey.org/en/forum/design-issue...-showing-qno-answerq to make the options appear. However the problem is, I have not been able to get
1. what respondents writes when he selects others pulled to the page
2. to eliminate the huge space/gap between the two options selected (if the options are 1 and 18 in the list for previous question)

Please let me know if I should provide any further information to get further help.

Thanks,

Please Log in to join the conversation.

More
5 years 3 months ago #74027 by tpartner
tpartner replied the topic: Answer sourcing to question - hide space and get content in "others"
Can you provide a screenshot and maybe a small sample survey?

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 3 months ago #74040 by Newbeedu
Newbeedu replied the topic: Answer sourcing to question - hide space and get content in "others"
Hi,

I have attached the screen shots and also a copy of the dummy survey where i need help.




File Attachment:

File Name: Sample Survey.lss
File Size:43 KB
Attachments:

Please Log in to join the conversation.

More
5 years 3 months ago #74044 by tpartner
tpartner replied the topic: Answer sourcing to question - hide space and get content in "others"
The extra spaces are caused by many empty <p> elements, perhaps inserted by the editor.

I would use a list element for the brands instead of <p> elements - see the screenshot. In which case the script should be:
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function() {
		$('li:contains("No answer")').hide();
	});
</script>

Here is a modified survey:

File Attachment:

File Name: limesurvey...3714.lss
File Size:40 KB


And the screenshot:

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: Newbeedu

Please Log in to join the conversation.

More
5 years 3 months ago #74045 by TMSWhite
TMSWhite replied the topic: Answer sourcing to question - hide space and get content in "others"
And here is how you could do it using the Expression Manager list() function in 1.92

File Attachment:

File Name: limesurvey...3714.lss
File Size:41 KB


Here is a screenshot of the running survey (in all-in-one mode):



The actual question text is this:



The color coding (syntax highlighting), shows the equation. It may seem a little tricky since you want to only list the name of the product (the .question) if the product was actually selected. Thus the use of the if() function like this (if option 1 was checked, then it returns the question for option 1, otherwise it returns blank).
if(Q2_1, Q2_1.question, '')

The list() function creates a comma separated list of all of the non-blank answers.
Attachments:
The following user(s) said Thank You: Newbeedu

Please Log in to join the conversation.

More
5 years 3 months ago #74078 by Newbeedu
Newbeedu replied the topic: Answer sourcing to question - hide space and get content in "others"
Thanks a lot. Survey looks so much better now. However, "others" answer still does not appear in the list in next page.
Screenshots attached.

Attachments:

Please Log in to join the conversation.

More
5 years 3 months ago #74080 by Mazi
Mazi replied the topic: Answer sourcing to question - hide space and get content in "others"
Tom, can EM already trigger the "other" text?


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 3 months ago #74118 by TMSWhite
TMSWhite replied the topic: Answer sourcing to question - hide space and get content in "others"
Mazi, yes, as you can see from the post below (where I entered "Acer" for other), you can trigger and access the "other" text using EM.

Please Log in to join the conversation.

More
5 years 3 months ago #74128 by Mazi
Mazi replied the topic: Answer sourcing to question - hide space and get content in "others"

TMSWhite wrote: Mazi, yes, as you can see from the post below (where I entered "Acer" for other), you can trigger and access the "other" text using EM.

EM rocks!

:laugh:


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 3 months ago - 5 years 3 months ago #74137 by tpartner
tpartner replied the topic: Answer sourcing to question - hide space and get content in "others"

However, "others" answer still does not appear in the list in next page.

The JavaScript solution for 1.91 works as expected for me. What LimeSurvey version and browser are you using?


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last Edit: 5 years 3 months ago by tpartner.

Please Log in to join the conversation.

More
5 years 3 months ago #74144 by Newbeedu
Newbeedu replied the topic: Answer sourcing to question - hide space and get content in "others"
I am using version 1.91 and build 10089 in Google Chrome

Please Log in to join the conversation.

More
5 years 3 months ago #74146 by tpartner
tpartner replied the topic: Answer sourcing to question - hide space and get content in "others"
Hmm...the attached modified survey works for me in Chrome too.

Can you activate a test survey for us to try?

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 3 months ago #74206 by Newbeedu
Newbeedu replied the topic: Answer sourcing to question - hide space and get content in "others"
Survey Link is: 61.8.152.152/survey/index.php?sid=33888&lang=en

I also need another help in Q4 (last question in the last page).

In that question respondents are rating 3 brands - 1 chosen and 2 considered, on set of parameters. If I can have boxes to insert the names of the brands before going for rating it would be great. I cannot change the numerical drop down to a text box as the parameters are randomized to avoid bias, and the respondents would have to search for the text box to insert the name.

Please help.
[attachment:1]limesurvey_survey_33888.lss[/attachment]

Survey attached.

Thanks.

Please Log in to join the conversation.

More
5 years 3 months ago #74207 by Newbeedu
Newbeedu replied the topic: Answer sourcing to question - hide space and get content in "others"
Survey Attached
Attachments:

Please Log in to join the conversation.

More
5 years 3 months ago - 5 years 3 months ago #74308 by tpartner
tpartner replied the topic: Answer sourcing to question - hide space and get content in "others"

I am using version 1.91 and build 10089 in Google Chrome

Updating to the latest version should fix the problem of the "Other" text not appearing. Test here with 1.91 (12416) - www.partnersinc.biz/surveys//index.php?s...88&newtest=Y&lang=en

I see another small problem though: If you select "Wild Fire" in page 1, then "C510" will appear in page 2. This appears to be a bug with INSERTANS whe using numerics for answer codes and having more that 10. Try changing the answer codes in the multiple-options from 1-22 to A-W (use alphas).

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 3 months ago by tpartner.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now