Browse Source

feat: skip fixed term tenancy length question when tenancy is other

pull/1403/head
natdeanlewissoftwire 3 years ago
parent
commit
578dea7828
  1. 2
      app/models/form/lettings/pages/tenancy_length.rb
  2. 3
      config/forms/2022_2023.json

2
app/models/form/lettings/pages/tenancy_length.rb

@ -2,7 +2,7 @@ class Form::Lettings::Pages::TenancyLength < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "tenancy_length"
@depends_on = [{ "tenancy" => 4 }, { "tenancy" => 6 }, { "tenancy" => 3 }]
@depends_on = [{ "tenancy" => 4 }, { "tenancy" => 6 }]
end
def questions

3
config/forms/2022_2023.json

@ -1110,9 +1110,6 @@
},
{
"tenancy": 6
},
{
"tenancy": 3
}
]
},

Loading…
Cancel
Save