Please help us help you and fill where relevant:
Your LimeSurvey version: Version 6.5.2
Own server or LimeSurvey hosting: LimeSurvey Cloud
Survey theme/template: modified Fruity 23 Blueberry Template
==================
Hello everyone,
I'm working on a custom navigation menu (for an organisation survey). For this purpose I'm trying to find out if a question has already been answered.
The "normal" question index menu has the following code:
Code:
{% for step, indexItem in aSurveyInfo.aQuestionIndex.items %}
{% set statusClass = '' %}
{% if attribute(indexItem.stepStatus, 'index-item-unanswered') is defined and attribute(indexItem.stepStatus, 'index-item-unanswered') == true %}
{% set statusClass = statusClass ~ ' index-warning' %}
{% endif %}
{% if attribute(indexItem.stepStatus, 'index-item-error') is defined and attribute(indexItem.stepStatus, 'index-item-error') == true %}
{% set statusClass = statusClass ~ ' index-danger' %}
{% endif %}
{% if attribute(indexItem.stepStatus, 'index-item-current') is defined and attribute(indexItem.stepStatus, 'index-item-current') == true %}
{% set statusClass = statusClass ~ ' disabled' %}
{% endif %}
<li class="list-group-item {{ indexItem.coreClass }}">
<a href='{{ indexItem.url }}' data-limesurvey-submit='{{ indexItem.submit }}'
class='dropdown-item {{ statusClass }}'>
{{ indexItem.text }}
</a>
</li>
{% endfor %}
This seems to check wether a question has been opened but not answered ('index-item-unanswered'), if a question is the currently opened question ('index-item-current') and some other attribute I don't know ('index-item-error')
Is it possible to see if a question is actually answered?
Furthermore is it possible to see if a question is currently visible or filtered?