- Posts: 8
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript"> jQuery(document).ready(function() { document.getElementById('answer{SID}X{GID}X{QID}').value = "{ASSESSMENT_CURRENT_TOTAL}"; //document.getElementById('answer{SID}X{GID}X{QID}').value = 6 // Avoid possibility to change the assess value if the question is not hidden $('#answer{SID}X{GID}X{QID}').attr( "readonly","readonly" ); }); </script>
DenisChenu wrote: Hi ,
To save current assesment value to DB, without any hack you can
- Add a equation question type
- Set it hidden
- Set equation to {ASSESSMENT_CURRENT_TOTAL}*
See www.limesurvey.org/manual/Question_type_-_Equation
1st questionholch wrote: Hi Denis,
{assessment_CURRENT _TOTAL} didn't work for me yesterday in an equation. Could it be that it only works if the equation question is on a different page as the assessment questions?
{assessment_CURRENT _TOTAL}