@ -29,6 +29,7 @@ class CaseLogsController < ApplicationController
def create
case_log = CaseLog.create(case_log_params)
respond_to do |format|
case_log.form.current_user = current_user
format.html { redirect_to case_log }
format.json do
if case_log.persisted?
@ -18,15 +18,14 @@
"hint_text": "",
"type": "select",
"answer_options": {
"1": {
"value": "General needs"
},
"2": {
"value": "Supported housing"
}
"": "Select an option",
"2": "Believe",
"3": "Barrow"
"hidden_in_check_answers": true
"derived": true,
"depends_on": [
[
{
@ -22,15 +22,14 @@