Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

9 lines
311 B

module ConditionalQuestionsHelper
def conditional_questions_for_page(page)
page.questions.map(&:conditional_for).compact.map(&:keys).flatten
end
def display_question_key_div(page, question)
"style='display:none;'".html_safe if conditional_questions_for_page(page).include?(question.id)
end
end