Browse Source

feat: add hint text

pull/919/head
natdeanlewissoftwire 3 years ago
parent
commit
43b5bff4ad
  1. 4
      app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb

4
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

Loading…
Cancel
Save