hide play/pause button for time_worked field for Incident

Deepa Srivastav
Kilo Sage

I am trying to hide play/pause button for time_worked field for Incident.

I tried using below code in onload :

$('link.incident.time_worked').hide(); but its not working for me. I tried this in Fuji and Geneva.

Only the image gets hidden, but a square still appears and we can click that too which starts/pause the timer.

1 ACCEPTED SOLUTION

Works on Fuji



jQuery('#link\\.incident\\.time_worked').parent().hide();


View solution in original post

19 REPLIES 19

Thanks for your answer



My script works now with


var btn_id = g_form.getControl('time_worked').getAttribute("data-uid");  


      gel('tmr_'+btn_id+'_img').style.display = 'none';




I just found other thing internaly what is causing the issue, it was an ui policy on the time card field I deactivate it and now the icon is hidden.



thanks


Elias


I have a similar issue but need to hide the pause play button on a Catalog Task, tried to add the below code and was not helpful, please suggest thanks in advance. This works fine for Incident



jQuery('#link\\.sc_task\\.time_worked').parent().hide();



I tried $('link.sc_task.time_worked').hide();   and it only removes the logo not the button


the below code worked thanks



var btn_id = g_form.getControl('time_worked').getAttribute("data-uid");


      gel('tmr_'+btn_id+'_img').style.display = 'none';


Hi Kalai,

 

i know this is not the right forum, but may i please know the method to pause/play the timer field on kingston? 

Community Alums
Not applicable

Hi Kalai, how to hide in sc_task form? i need to hide the pause button which is near to the time_worked field