Merge branch 'main' of http://192.168.1.200:3000/Stratawiz/Rapport-Laravel
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
This commit is contained in:
commit
3bffd1f5c2
|
|
@ -286,6 +286,53 @@
|
||||||
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
|
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#field-revesmart_launch_to_hcps').on('change',function(){
|
||||||
|
let value=$('#field-revesmart_launch_to_hcps').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
|
||||||
|
if(value==='Yes'){
|
||||||
|
$('#report-form').append('<input type="hidden" name="rev_launch" value="1" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#field-revesmart_handwriting_activity').on('change',function(){
|
||||||
|
let value=$('#field-revesmart_handwriting_activity').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
|
||||||
|
if(value==='Yes'){
|
||||||
|
$('#report-form').append('<input type="hidden" name="handwriting_activity" value="1" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#field-dr_converted_for_revesmart').on('change',function(){
|
||||||
|
let value=$('#field-dr_converted_for_revesmart').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
|
||||||
|
if(value==='Yes'){
|
||||||
|
$('#report-form').append('<input type="hidden" name="revesmart_converted" value="1" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#field-chemist_availability').on('change',function(){
|
||||||
|
let value=$('#field-chemist_availability').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
$('#report-form input.dynamic-hidden').remove();
|
||||||
|
if(value==='First Time'){
|
||||||
|
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="first_time" value="1" />');
|
||||||
|
}
|
||||||
|
else if(value==='Repeat'){
|
||||||
|
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="repeat" value="1" />');
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="no" value="0" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
$('#report-form').on('submit', function(event){
|
$('#report-form').on('submit', function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,53 @@
|
||||||
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
|
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#field-revesmart_launch_to_hcps').on('change',function(){
|
||||||
|
let value=$('#field-revesmart_launch_to_hcps').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
|
||||||
|
if(value==='Yes'){
|
||||||
|
$('#report-form').append('<input type="hidden" name="rev_launch" value="1" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#field-revesmart_handwriting_activity').on('change',function(){
|
||||||
|
let value=$('#field-revesmart_handwriting_activity').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
|
||||||
|
if(value==='Yes'){
|
||||||
|
$('#report-form').append('<input type="hidden" name="handwriting_activity" value="1" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#field-dr_converted_for_revesmart').on('change',function(){
|
||||||
|
let value=$('#field-dr_converted_for_revesmart').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
|
||||||
|
if(value==='Yes'){
|
||||||
|
$('#report-form').append('<input type="hidden" name="revesmart_converted" value="1" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$('#field-chemist_availability').on('change',function(){
|
||||||
|
let value=$('#field-chemist_availability').val();
|
||||||
|
console.log("Value is :",value);
|
||||||
|
$('#report-form input.dynamic-hidden').remove();
|
||||||
|
if(value==='First Time'){
|
||||||
|
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="first_time" value="1" />');
|
||||||
|
}
|
||||||
|
else if(value==='Repeat'){
|
||||||
|
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="repeat" value="1" />');
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$('#report-form').append('<input type="hidden" class="dynamic-hidden" name="no" value="0" />');
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
$('#report-form').on('submit', function(event){
|
$('#report-form').on('submit', function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue