Piping from Multiple Choice to Multiple Numerical

4 years 5 months ago #86836 by Mazi
Since we have the great Expression Manager tool which is able to deal with this, please consider updating to the latest Limesurvey 1.92 version.

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.

4 years 5 months ago #86909 by ck2603
Thank you for the suggestion. But after having discussed the issue with the ADMIN (I'm a user), we decided not to update it until later since there are multiple active surveys still running and we were afraid of screwing up..

That means I have to stick with the script now. I figured out a way to work around the category "Other" and the following script worked well on removing "No answer, ".

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var thisText = $(this).text();
thisText = thisText.replace(/No answer, /g, '').replace(/, $/, ' ');

My last question: how can I remove the last comma (i.e., the trailing comma after population C) in the text below?
You indicated population A, population B, population C, are under-served....

Please Log in to join the conversation.