- Posts: 10
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var qID = {QID}; var answer = $('input[id$="X'+qID+'A1"]'); $(answer).attr('disabled', true); $(answer).prop('readonly', true); }); </script>
Is that behavior depending on the browser? Or on Limesurvey and shipped JS libraries?tpartner wrote: If the input remains disabled when the form is submitted, its value may not be recorded in the data.
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var qID = {QID}; var answer = $('input[id$="X'+qID+'A1"]'); $(answer).prop('disabled', true); $(answer).prop('readonly', true); $('#movenextbtn, #movesubmitbtn').click(function() { $(answer).prop('disabled', false); }); }); </script>