Compare commits

..

No commits in common. "891eb91eadf88eadb026d64733f033411099c80c" and "c6ffd0759fbc45ee05592dcf0d0c4890c201db7d" have entirely different histories.

1 changed files with 2 additions and 13 deletions

View File

@ -44,9 +44,9 @@
$submissions = Formhelper::getMultiformData( $form->partition, $form_id, $form->user_id);
$submissions = $submissions->data->submissions;
/* echo "<pre>";
echo "<pre>";
print_r($submissions);
echo "</pre>"; */
echo "</pre>";
@endphp
@if(count($submissions) <=4)
@ -268,9 +268,6 @@
$("[id^='field-contact_id']").each(function() {
var select = $(this);
// Clear previous options
var existingVal = select.val() || select.attr('data-preselected') || '';
select.html('');
// Add a default 'Select' option
select.append(
@ -293,10 +290,6 @@
select.append(option);
});
if (existingVal) {
select.val(existingVal);
}
// For each select element, add a change event handler to populate `msl_code` and `speciality`
// We assume dropdowns and targets follow the pattern:
// - select: field-contact_id_1, field-contact_id_2, ..., field-contact_id
@ -327,11 +320,7 @@
});
// Ensure unique selection is enforced after initial render
if(existingVal){
select.trigger('change');
}else{
enforceUniqueDoctorSelections();
}
});
// Enable search on doctor dropdowns