I need to highlight list of tasks in hr case where the attachment is added for the tasks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 06:18 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 06:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 08:32 AM
Hi @Shaqeel ,
I need to highlight the task numbers in the list where the upload status is success