Team 3 Form Changes
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m42s Details

This commit is contained in:
zeeshan 2026-08-07 12:14:28 +05:30
parent 38d8e25e57
commit 8410626146
2 changed files with 63 additions and 2 deletions

View File

@ -365,6 +365,39 @@
$('#execution-form-wrapper').show()
$('#table-wrapper').hide()
$('#execution-no_of_patients_on_duolin').attr('max',10);
$('#execution-type_of_meeting').on('change',function(){
let type_of_meet=$('#execution-type_of_meeting').val();
console.log("Type of Meet",type_of_meet);
if(type_of_meet==='Asthma camp'){
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true);
$('label[for="execution-name_of_the_speaker"]').html('Name of the Speaker (Pedia or GP only) ');
}
else{
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().hide();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',false);
$('label[for="execution-name_of_the_speaker"]').html('Name of the speaker');
}
})
let type_of_meet=$('#execution-type_of_meeting').val();
console.log("Type of Meet without change",type_of_meet);
if(type_of_meet==='Asthma camp'){
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true);
$('label[for="execution-name_of_the_speaker"]').html('Name of the Speaker (Pedia or GP only) ');
}
else{
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().hide();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',false);
$('label[for="execution-name_of_the_speaker"]').html('Name of the speaker');
}
})
jQuery(document).ready(function($) {
@ -440,7 +473,7 @@
recordDateField.setAttribute('min', today);
var executionDateField = document.getElementById('execution-plan_date');
// executionDateField.setAttribute('min', today);
executionDateField.setAttribute('min', today);
$('.edit-btn').click(function() {
var executionexeField = document.getElementById('execution-record_date');

View File

@ -412,6 +412,34 @@
$('#table-wrapper').hide()
$('#execution-attendence').attr({min:"1"});
$('#execution-no_of_patients_on_duolin').attr('max',10);
let type_of_meet=$('#execution-type_of_meeting').val();
console.log("type of meet",type_of_meet);
if(type_of_meet==='Asthma Camp'){
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true);
$('label[for="execution-name_of_the_speaker"]').html('Name of the Speaker (Pedia or GP only) ');
}
else{
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().hide();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',false);
$('label[for="execution-name_of_the_speaker"]').html('Name of the speaker');
}
$('#execution-type_of_meeting').on('change',function(){
let type_of_meet=$('##execution-type_of_meeting').val();
if(type_of_meet==='Asthma Camp'){
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().show();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',true);
}
else{
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').parent().hide();
$('#execution-no_of_patients_on_duolin,#execution-no_of_units_duolin_respules').attr('required',false);
}
})
})
@ -530,7 +558,7 @@
// recordDateField.setAttribute('max', today);
var executionDateField = document.getElementById('execution-plan_date');
// executionDateField.setAttribute('min', today);
executionDateField.setAttribute('min', today);
$('.edit-btn').click(function() {
var executionexeField = document.getElementById('execution-record_date');