I have an active survey with some data on it already. I want to hide two answer options in an array quesiton. I keep on getting an error of calculatevalueSIDXGIDXQID is not defined. Not sure what's causing that error.
Here's an example of the survey
fpitesters.limeask.com/index.php?sid=69548&newtest=Y&lang=en
I'm using the following code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
hideRows(42739);
function hideRows(q1ID) {
// Loop through all Q1 sub-questions
$('#question'+q1ID+' li').each(function(i) {
if($('label', this).text() == 'No answer') {
$(this).hide();
$('input.text', this).val(0);
}
});
calculateValue69548X1356X42739(1); // NOTE: this needs to use local survey, group and q2 question IDs
}
});
</script>