Browse Source

Hide link if question is unanswered

pull/2973/head
Manny Dinssa 2 months ago
parent
commit
3fb0ff69f0
  1. 2
      app/views/form/check_errors.html.erb

2
app/views/form/check_errors.html.erb

@ -50,7 +50,7 @@
</dd>
<dd class="govuk-summary-list__actions">
<% if !question.displayed_as_answered?(@log) || question.subsection.id == "setup" %>
<%= govuk_link_to check_errors_answer_text(question, @log), check_errors_answer_link(@log, question, @page, applicable_questions) %>
<%= govuk_link_to check_errors_answer_text(question, @log), check_errors_answer_link(@log, question, @page, applicable_questions) unless question.unanswered?(@log)%>
<% else %>
<input type="submit" value="Clear" class="govuk-body govuk-link submit-button-link" name="<%= question.id %>">
<% end %>

Loading…
Cancel
Save