This isn't a bug in LS, but perhaps highlights a need to clarify how best to use custom JavaScript with Expression Manager.
Your custom JavaScript should have been:
Code:
<script type="text/javascript">
<!--
$(document).ready(function()
{
// Find a random number between 1 and 4
var randNumber = Math.floor(Math.random()*3 + 1);
$('input#answer12739X218X3728').val(randNumber);
checkconditions(randNumber,'12739X218X3728','text');
})
//-->
</script>
Checkconditions() must be called in order for EM to process the new value you set for the variable (e.g. to ensure that the new value is stored within the hidden variables that are submitted, and call the relevance equations to change which questions are visible).
So, the documentation for
this workaround
needs to be updated for 1.92+. It isn't adequate to just call:
Code:
$('#questionQQ').hide();