From 799ee04751ce0a66b5ed7ca28767d374bb189d96 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Tue, 23 Jun 2026 11:40:11 +0530 Subject: [PATCH 1/2] Updated vitalis blade file --- ...-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php b/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php index f8adf18c..cd1e7f50 100644 --- a/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php +++ b/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php @@ -72,7 +72,7 @@ name="{{$question->code}}" class="form-control" {{$question->required == 'yes'?'required':'' }} - {{ in_array($question->code, ['speciality','msl_code']) ? 'readonly' : '' }} + {{ in_array($question->code, ['speciality','legacy_code']) ? 'readonly' : '' }} value="{{isset($question->value)?$question->value:''}}"> @break @case('date') @@ -89,7 +89,7 @@ @foreach($question->options as $option) @@ -243,7 +243,7 @@ $("") .attr("value", itm.value) - .attr("msl_code", itm.contact.msl_code) + .attr("legacy_code", itm.contact.legacy_code) .attr("speciality", itm.contact.speciality) .text(itm.display) @@ -297,16 +297,16 @@ console.log( "MSL CODE:", - $('option:selected', this).attr('msl_code') + $('option:selected', this).attr('legacy_code') ); - $('#field-msl_code').val( - $('option:selected', this).attr('msl_code') + $('#field-legacy_code').val( + $('option:selected', this).attr('legacy_code') ); }); - $('#field-speciality,#field-msl_code').attr('readonly',true); + $('#field-speciality,#field-legacy_code').attr('readonly',true); $('#field-chemist_name').on('input', function () { this.value = this.value.replace(/[^a-zA-Z\s]/g, ''); From ef69dee8cb1ef9d7f73a70135fccb3f9b5e50741 Mon Sep 17 00:00:00 2001 From: Tanuja Pansare Date: Tue, 23 Jun 2026 12:11:33 +0530 Subject: [PATCH 2/2] Updated vitalis blade file --- ...cb15-56f9-45f0-9a57-3ed76e9a5187.blade.php | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php b/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php index cd1e7f50..eea271ed 100644 --- a/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php +++ b/resources/views/form/rapport-vitalis/1782108512-d82ecb15-56f9-45f0-9a57-3ed76e9a5187.blade.php @@ -88,11 +88,20 @@ @break @@ -285,9 +294,16 @@ }); + // $('#field-contact_id').change(function() { + // $('#field-speciality').val($('option:selected', this).attr('speciality')) + // }) $('#field-contact_id').change(function() { - $('#field-speciality').val($('option:selected', this).attr('speciality')) - }) + let speciality = $('option:selected', this).attr('speciality'); + + console.log('Speciality:', speciality); + + $('#field-speciality').val(speciality); +}); $('#field-contact_id').change(function() {