diff --git a/app/Http/Requests/V2/Forms/StoreFormRequest.php b/app/Http/Requests/V2/Forms/StoreFormRequest.php index 586bdaf53..b5d2791fa 100644 --- a/app/Http/Requests/V2/Forms/StoreFormRequest.php +++ b/app/Http/Requests/V2/Forms/StoreFormRequest.php @@ -34,6 +34,7 @@ public function rules() 'form_sections.*.form_questions' => ['sometimes', 'array'], 'form_sections.*.form_questions.*.linked_field_key' => ['sometimes', 'nullable', 'string'], + 'form_sections.*.form_questions.*.collection' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.label' => ['required', 'string'], 'form_sections.*.form_questions.*.input_type' => ['sometimes', 'nullable'], 'form_sections.*.form_questions.*.name' => ['sometimes', 'nullable'], @@ -58,6 +59,7 @@ public function rules() 'form_sections.*.form_questions.*.child_form_questions' => ['sometimes'], 'form_sections.*.form_questions.*.child_form_questions.*.linked_field_key' => ['sometimes', 'required', 'string'], + 'form_sections.*.form_questions.*.child_form_questions.*.collection' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.child_form_questions.*.label' => ['sometimes', 'required', 'string'], 'form_sections.*.form_questions.*.child_form_questions.*.name' => ['sometimes', 'nullable'], 'form_sections.*.form_questions.*.child_form_questions.*.input_type' => ['sometimes', 'nullable'], diff --git a/app/Http/Requests/V2/Forms/UpdateFormRequest.php b/app/Http/Requests/V2/Forms/UpdateFormRequest.php index 6e02393a9..c7dea033a 100644 --- a/app/Http/Requests/V2/Forms/UpdateFormRequest.php +++ b/app/Http/Requests/V2/Forms/UpdateFormRequest.php @@ -34,6 +34,7 @@ public function rules() 'form_sections.*.form_questions' => ['sometimes', 'nullable', 'array'], 'form_sections.*.form_questions.*.linked_field_key' => ['sometimes', 'nullable', 'string'], + 'form_sections.*.form_questions.*.collection' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.label' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.uuid' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.name' => ['sometimes', 'nullable'], @@ -63,6 +64,7 @@ public function rules() 'form_sections.*.form_questions.*.child_form_questions' => ['sometimes', 'nullable'], 'form_sections.*.form_questions.*.child_form_questions.*.uuid' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.child_form_questions.*.linked_field_key' => ['sometimes', 'nullable', 'string'], + 'form_sections.*.form_questions.*.child_form_questions.*.collection' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.child_form_questions.*.label' => ['sometimes', 'nullable', 'string'], 'form_sections.*.form_questions.*.child_form_questions.*.name' => ['sometimes', 'nullable'], 'form_sections.*.form_questions.*.child_form_questions.*.input_type' => ['sometimes', 'nullable'],