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) +