Hi Tony, thanks for the update. I am talking about the time when we add the answers options to the question. For example, if a question has 4 options (radio button) with a code a,b,c,d. It did not show the codes(a,b,c,d) on the survey. It just shows the radio button with the text.
So, for example, if you want to show the answer codes in a list-radio custom theme, follow those instructions and place something like this in answer_row.twig:
Code:
<!-- answer_row -->
<li id='javatbd{{ myfname }}' class='answer-item radio-item' {{ sDisplayStyle }} >
<input
type="radio"
value="{{ code }}"
name="{{ name }}"
id="answer{{ name }}{{ code }}"
{{ checkedState }}
onclick="if (document.getElementById('answer{{ name }}othertext') != null) document.getElementById('answer{{ name }}othertext').value='';checkconditions(this.value, this.name, this.type)"
/>
<label for="answer{{ name }}{{ code }}" class="control-label radio-label">
({{ code }}) {{ answer }}
</label>
</li>
<!-- end of answer_row -->
This will result in this, where you see the answer codes in brackets:
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.