@ -6,6 +6,9 @@ class Form::Lettings::Pages::ReasonForLeavingLastSettledHomeRenewal < ::Form::Pa
end
def questions
@questions ||= [Form::Lettings::Questions::ReasonRenewal.new(nil, nil, self)]
@questions ||= [
Form::Lettings::Questions::ReasonRenewal.new(nil, nil, self),
Form::Lettings::Questions::Reasonother.new(nil, nil, self),
]
@ -9,10 +9,27 @@ class Form::Lettings::Questions::ReasonRenewal < ::Form::Question
@hint_text = "You told us this letting is a renewal. We have removed some options because of this."
@answer_options = ANSWER_OPTIONS
@question_number = 77
@conditional_for = {
"reasonother" => [
20,
],
}
ANSWER_OPTIONS = {
"40" => { "value" => "End of assured shorthold tenancy (no fault)" },
"42" => { "value" => "End of fixed term tenancy (no fault)" },
"20" => {
"value" => "Other",
},
"47" => {
"value" => "Tenant prefers not to say",
"divider" => {
"value" => true,
"28" => {
"value" => "Don’t know",
}.freeze
@ -6228,8 +6228,30 @@
"42": {
"value": "End of fixed term tenancy (no fault)"
"20": {
"value": "Other"
"47": {
"value":"Tenant prefers not to say"
"divider": {
"value": true
"28": {
"value": "Don’t know"
"conditional_for": {
"reasonother": [
20
"reasonother": {
"header": "What is the reason?",
"hint_text": "",
"type": "text"
"depends_on": [