I need to highlight list of tasks in hr case where the attachment is added for the tasks.

Vishali3
Tera Contributor

Hi ,

We have a requirement like ,field "upload_document" in sn_hr_core_task is set to success or failure based on the attachment added .So If I open the hr case then the list of tasks will be displayed and I need to highlight the tasks ehere the upload_ document is success.

So ,any help regarding this is much appreciated.

2 REPLIES 2

Shaqeel
Mega Sage

Hi @Vishali3 

 

You can achieve this by using UI Policies or Client Scripts.

 

In UI Policies you need to select table sn_hr_core_task

Create New UI Policy action and set the Field name as "upload_document", the choice as "success", and the Action as "Decorate".

 

For Client script,

Table will be sn_hr_core_task.

In the script field, you can write a script to check if the "upload_document" field is set to "success" and then apply a style to highlight the row.

Sample:

function onLoad() {
var uploadDocument = g_form.getValue('upload_document');
if (uploadDocument == 'success') {
g_form.flash('upload_document', '

 

Mark Helpful/Solution 🙂

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Vishali3
Tera Contributor

Hi @Shaqeel ,

I need to highlight the task numbers in the list where the upload status is success