From 8573e0c746656b6f5fc4276a7d727b57859d7706 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Fri, 4 Sep 2026 11:43:43 +0530 Subject: [PATCH] Form changes --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 43 ++- ...1965-8a71-4c19-ad41-10e023f85f6f.blade.php | 1 + ...f5ac-f7a7-477b-926f-62a066a6c718.blade.php | 324 ++++++++++++++++++ 3 files changed, 355 insertions(+), 13 deletions(-) create mode 100644 resources/views/form/rapport-team4/1788495344-e823f5ac-f7a7-477b-926f-62a066a6c718.blade.php diff --git a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 3e2caf0a..5d6cfb48 100644 --- a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -545,24 +545,41 @@ } }) - $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').parent().hide(); - $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name').attr('required',false); + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name,#field-other_type_of_meeting').parent().hide(); + $('#field-other_msl_code,#field-other_speciality,#field-other_speaker_name,#field-other_type_of_meeting').attr('required',false); $('#field-name_of_the_speaker').change(function() { $('#field-msl_code').val($('option:selected', this).attr('msl_code')) - }) + }) - $('#field-name_of_the_speaker').change(function() { - $('#field-speciality').val($('option:selected', this).attr('speciality')) - }) + $('#field-name_of_the_speaker').change(function() { + $('#field-speciality').val($('option:selected', this).attr('speciality')) + }) - $('#field-other_speaker_name').change(function() { - $('#field-other_msl_code').val($('option:selected', this).attr('msl_code')) - }) - - $('#field-other_speaker_name').change(function() { - $('#field-other_speciality').val($('option:selected', this).attr('speciality')) - }) + $('#field-other_speaker_name').change(function() { + $('#field-other_msl_code').val($('option:selected', this).attr('msl_code')) + }) + + $('#field-other_speaker_name').change(function() { + $('#field-other_speciality').val($('option:selected', this).attr('speciality')) + }) + + + $('#field-type_of_meeting').on('change',function(){ + let type_of_meet=$('#field-type_of_meeting').val(); + console.log("Type of Meet",type_of_meet); + + if(type_of_meet==='Other'){ + $('#field-other_type_of_meeting').parent().show(); + $('#field-other_type_of_meeting').attr('required',true); + + } + else{ + $('#field-other_type_of_meeting').parent().hide(); + $('#field-other_type_of_meeting').attr('required',false); + + } + }) diff --git a/resources/views/form/rapport-team3/1764044541-2eaa1965-8a71-4c19-ad41-10e023f85f6f.blade.php b/resources/views/form/rapport-team3/1764044541-2eaa1965-8a71-4c19-ad41-10e023f85f6f.blade.php index c923696a..8c2605e2 100644 --- a/resources/views/form/rapport-team3/1764044541-2eaa1965-8a71-4c19-ad41-10e023f85f6f.blade.php +++ b/resources/views/form/rapport-team3/1764044541-2eaa1965-8a71-4c19-ad41-10e023f85f6f.blade.php @@ -83,6 +83,7 @@ {{-- @endif --}} @foreach ($questions as $question) +