Skip to content

Commit

Permalink
Merge pull request #649 from bitzesty/change-validation-copy-supporters
Browse files Browse the repository at this point in the history
validation copy update
  • Loading branch information
dreamfall authored Feb 1, 2024
2 parents baebcce + a875bdb commit d61a737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/frontend/form-validation.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ window.FormValidation =
validateSupportLetters: (question) ->
lettersReceived = $(".js-support-letter-received").length
if lettersReceived < 2
@logThis(question, "validateSupportLetters", "Upload at least two letters of support")
@appendMessage(question, "Upload at least two letters of support")
@logThis(question, "validateSupportLetters", "Upload two letters of support")
@appendMessage(question, "Upload two letters of support")
@addErrorClass(question)

validateSelectionLimit: (question) ->
Expand Down
2 changes: 1 addition & 1 deletion app/views/qae_form/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ form.qae-form.award-form data-autosave-url=save_form_url(@form_answer) action=sa
h2.govuk-error-summary__title#letters-of-support-error-title There was a problem submitting the form
.govuk-error-summary__body
p.govuk-body
' Upload at least two letters of support.
' Upload two letters of support.
p.govuk-body
= link_to "Add more letters of support", form_form_answer_supporters_path(@form_answer), class: 'govuk-link'

Expand Down

0 comments on commit d61a737

Please sign in to comment.