Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
[3155] Improve usability of study type
Browse files Browse the repository at this point in the history
The user does not get the opportunity to select which type of studies they
are interested in as part of the initial search. We include all types
of study by default. The user can change the filter to narrow their search.

We have a validation that ensures at least one checkbox is ticked. However,
if the user decides to untick each option and submits the page, we provide
them with an error message stating they should pick at least one option
but both checkboxes are ticked by default so it maybe confusing to the user
as they did not tick each option and both checkboxes are already ticked.
They maybe confused as to how to correct this error as it seems to have
corrected itself.
  • Loading branch information
aliuk2012 committed Mar 25, 2020
1 parent d986e40 commit d8083f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/result_filters/study_type/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</span>
<% end %>
<div class="govuk-checkboxes">
<% default_to_true = (params[:fulltime] != "True" && params[:parttime] != "True")%>
<% default_to_true = (params[:fulltime] != "True" && params[:parttime] != "True") && flash[:error].nil? %>
<div class="govuk-checkboxes__item">
<%=
form.check_box(
Expand Down

0 comments on commit d8083f0

Please sign in to comment.