Welcome, Guest
Username: Password: Remember me

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

Answer sourcing to question - hide space and get content in "others" 4 years 4 days ago #74022

  • Newbeedu
  • Newbeedu's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
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,
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 4 days ago #74027

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5420
  • Thank you received: 1156
  • Karma: 480
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 4 days ago #74040

  • Newbeedu
  • Newbeedu's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
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
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74044

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5420
  • Thank you received: 1156
  • Karma: 480
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: Newbeedu

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74045

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 83
  • Karma: 37
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.
The administrator has disabled public write access.
The following user(s) said Thank You: Newbeedu

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74078

  • Newbeedu
  • Newbeedu's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
Thanks a lot. Survey looks so much better now. However, "others" answer still does not appear in the list in next page.
Screenshots attached.

The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74080

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

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74118

  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 83
  • Karma: 37
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.
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74128

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

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74137

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5420
  • Thank you received: 1156
  • Karma: 480
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 4 years 3 days ago by tpartner.
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 3 days ago #74144

  • Newbeedu
  • Newbeedu's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
I am using version 1.91 and build 10089 in Google Chrome
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 2 days ago #74146

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5420
  • Thank you received: 1156
  • Karma: 480
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 8 hours ago #74206

  • Newbeedu
  • Newbeedu's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
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.
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 8 hours ago #74207

  • Newbeedu
  • Newbeedu's Avatar
  • Offline
  • Junior Lime
  • Posts: 26
  • Karma: 0
Survey Attached
Attachments:
The administrator has disabled public write access.

Answer sourcing to question - hide space and get content in "others" 4 years 8 minutes ago #74308

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5420
  • Thank you received: 1156
  • Karma: 480
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 4 years 7 minutes ago by tpartner.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.309 seconds