Track Covid Status of your employees in uKnowva HRMS

OFFLINE

Track Covid Status of your employees in uKnowva HRMS

3 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: 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

Step 1: 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.
Edit_profile1.png

Step 2: 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
jQuery(".validateSubmit").click(function(){
	ASK_FOR_LEAVE_CONFIRMATION = false;
});

and replace it by below. Note: please change the fieldcodes correctly
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;
    }
});

Done . If not sure about how to create the above fields, just write to uKnowva Support
Last Edit: 3 years, 4 months ago by Vicky Jain.
  • Page:
  • 1