Team 3 (TOBA TITANS Enrollment) Doc Name Code
Specific Folder FTP Upload / ftp-deploy (push) Successful in 46s Details

This commit is contained in:
zeeshan 2026-11-18 17:17:09 +05:30
parent 89f75b25fa
commit 4f3b4060cc
1 changed files with 12 additions and 1 deletions

View File

@ -210,7 +210,7 @@
@if($question->code == 'contact_id')
msl_code="{{ (isset($option->contact->legacy_code) ? $option->contact->legacy_code : '') }}"
pcode="{{ (isset($option->contact->msl_code) ? $option->contact->msl_code : '') }}"
data-doctor-name="{{ $option->display }}"
speciality="{{ (isset($option->contact->speciality) ? $option->contact->speciality : '') }}"
@endif
>
@ -219,6 +219,7 @@
@endif
@endforeach
</select>
<input type="hidden" id="field-doctor_name" name="doctor_name[0]" value="">
@else
<select class="form-control" id="execution-{{ $question->code }}"
name="{{ $question->code }}[0]"
@ -505,10 +506,19 @@
var index = this.id.replace('field-contact_id', '');
var cleanDoctorName = $selected.attr('data-doctor-name') || $selected.text().replace(' (Already Added)', '').trim();
if ($(this).val() === '') {
cleanDoctorName = '';
}
$('#field-msl_code' + index).val($selected.attr('msl_code') || '');
$('#field-speciality' + index).val($selected.attr('speciality') || '');
$('#field-pcode' + index).val($selected.attr('pcode') || '');
$('#field-doctor_name' + index).val(cleanDoctorName);
preventDuplicateDoctors();
});
@ -555,6 +565,7 @@
<select class="form-control" id="field-{{$question->code}}-${doctor_count}" name="{{$question->code}}[${doctor_count}]" {{$question->required == 'yes'?'required':'' }}>
@if($question->code=='contact_id')
${doctorName}
<input type="hidden" id="field-doctor_name-${doctor_count}" name="doctor_name[${doctor_count}]" value="">
@else
<option value=""> -- Select -- </option>
@foreach($question->options as $option)