From 43b5bff4ad567752dd377528a85ebadccf58b3b1 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 29 Sep 2022 17:38:10 +0100 Subject: [PATCH] feat: add hint text --- .../form/sales/questions/buyer2_relationship_to_buyer1.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb b/app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb index d8ed5898e..67db6677d 100644 --- a/app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb +++ b/app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb @@ -9,7 +9,7 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question @page = page @answer_options = ANSWER_OPTIONS @conditional_for = { - "otherrelat2" => ["X"], + "otherrelat2" => %w[X], } @hidden_in_check_answers = { "depends_on" => [ @@ -22,7 +22,7 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question ANSWER_OPTIONS = { "P" => { "value" => "Parent" }, - "C" => { "value" => "Child" }, + "C" => { "value" => "Child", "hint" => "Must be eligible for child benefit, aged under 16 or under 20 if still in full-time education." }, "X" => { "value" => "Other" }, "R" => { "value" => "Buyer prefers not to say" }, }.freeze