% option_id = "#{question.question_id}_finish-later" checkbox_html = {class: 'checkbox', id: "answer_#{option_id}", name: "answer[live_code][later]", checked: Array(question.answer).include?('finish-later') } %>
This is a question where you will be asked to write code, and it utilizes a JavaScript-enabled environment. It looks like JavaScript is not loaded for some reason. Please check the box below to acknowledge that you agree to come back at a later time to finish answering this question before you can submit the test.
<%= form.check_box(:answer, checkbox_html, true, '') %> <%= form.label(option_id, 'I will come back later to finish this live coding question.') %>