- Posts: 419
- Thank you received: 34
Ask the community, share ideas, and connect with other LimeSurvey users!
{% set otherValue = answer_other|replace({'value="': ''})|trim('"', 'right')|trim %} <!-- answer_row_other --> <li id='javatbd{{ myfname }}' class='answer-item radio-text-item form-inline' role='group' {{ sDisplayStyle }} > <!-- Checkbox + label --> <div class="form-group othertext-label-checkox-container radio-item"> <input type="radio" value="-oth-" name="{{ name }}" id="SOTH{{ name }}" {{ checkedState }} /> <label for="SOTH{{ name }}" class="control-label label-radio" id="label-id-{{ name }}">{{ othertext }}</label> </div> <!-- comment --> <div class="form-group text-item other-text-item"> <textarea class="form-control {{ kpclass }}" name="{{ name }}other" id="answer{{ name }}othertext" title="{{ gT('Other') }}" aria-labelledby="label-id-{{ name }}" >{{ otherValue }}</textarea> </div> <script> $("#answer{{ name }}othertext").on("keyup",function(){ if($.trim($(this).val())!=''){ $('#SOTH{{ name }}').click(); }; }); </script> </li> <!-- end of answer_row_other -->