• Page:
  • 1

Track Covid Status of your employees in uKnowva HRMS

OFFLINE

Track Covid Status of your employees in uKnowva HRMS

4 years, 4 months ago
Many organizations want to track Covid status, here is a simple way on how you can manage this in uKnowva HRMS. One very simple way is to use this plugin: https://uknowva.com/extensions/covid-19-tracker/136 , if you want to track certificates too, then you may follow below steps alternatively

Just follow the below steps

[b]Step 1[/b]: Create 3 custom profile fields: Covid Stauts (Mandatory field), Dose 1 certificate and Dose 2 certificate (non-mandatory). It will add these fields to edit profile page of employees like this.
[attachment=111]Edit_profile1.png[/attachment]
[b]Step 2[/b]: Add an additional JS to put a validation in place. Override ur profile.edit.php file which is placed in com_community/templates/uknowva folder and add find below code
[code]
jQuery(".validateSubmit").click(function(){
ASK_FOR_LEAVE_CONFIRMATION = false;
});
[/code]
and replace it by below. Note: please change the fieldcodes correctly
[code]
jQuery(".validateSubmit").click(function(){
ASK_FOR_LEAVE_CONFIRMATION = false;
/* * below custom validation is added for covid certificate validation, please change the field ids
* field154 is dropdown of status
* 149 is dose 1 certificate
* 152 is dose 2 certificate
*/
switch(jQuery("#field154").val()){
case "Fully Vaccinated":
if(jQuery("#field149").val()=="" || jQuery("#field152").val()==""){
alert("Please attach both doses` certificates");
return false;
}
break;
case "Partially Vaccinated":
if(jQuery("#field149").val()==""){
alert("Please attach your Does 1 certificate");
return false;
}
break;
}
});
[/code]
Done :). If not sure about how to create the above fields, just write to uKnowva Support
Attachments:
Last Edit: 4 years, 4 months ago by Vicky Jain.

Most Discussed

Latest Forum Posts