I'm using the multiple numerical input question type with prefixes and suffixes and would like to preset a maximum sum value. The label in the question container that shows said value contains those prefixes/suffixes as well, though. Is there a way to hide or even disable them so that only the value is shown?
Nevermind, it works. Thank you very much for the quick response! It is kind of a bummer that this isn't possible through CSS though; giving those prefixes/suffixes a div and a class would make this so much easier and faster.
Would this also work with the template.js to affect all questions of this type? I'd rather not have other users play around with JS code in questions.
Yes, if placing the code in template.js, I would use this:
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Remove text from total value elements
$('.numeric-multi').each(function(e) {
$('.multiplenumerichelp span[id^="totalvalue_"]', this).html($('.multiplenumerichelp span[id^="totalvalue_"] span[id^="LEMtailor_"]', this));
});
});
</script>
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.