Welcome, Guest
Username: Password: Remember me

TOPIC: Piping from Multiple Choice to Multiple Numerical

Re: Piping from Multiple Choice to Multiple Numerical 1 year 10 months ago #86836

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

Re: Piping from Multiple Choice to Multiple Numerical 1 year 10 months ago #86909

  • ck2603
  • ck2603's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 9
  • Karma: 0
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....
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.151 seconds
Donation Image