Piping from Multiple Choice to Multiple Numerical

More
4 years 11 months ago #86836 by Mazi
Mazi replied the topic: Piping from Multiple Choice to Multiple Numerical
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.

More
4 years 11 months ago #86909 by ck2603
ck2603 replied the topic: Piping from Multiple Choice to Multiple Numerical
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() {
$('.insertedText').each(function(i){
var thisText = $(this).text();
thisText = thisText.replace(/No answer, /g, '').replace(/, $/, ' ');
$(this).text(thisText);
});
});
</script>

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.

Start now!

Just create your account and start using Limesurvey today.

Register now