- Posts: 17
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Hide the question
$('#question419346').hide();
// Get the URL param
var otx_id = getURLParameter('otx_id');
// Load the hidden question
$('#question419346 input.text').val(otx_id);
});
</script>
<script type="text/javascript"> $(document).ready(function(){ $('#question{QID}').hide(); }); </script>
Yepp, correct way to do it. In the old day this was the way to go.CGPsurvey2016 wrote: OK, after a bit of research I think I may have solved the problem.
I took all the URL-related code out of the hidden question and left just the line hiding it.