I want to add a info message (Please fill the time worked before updating the ticket) and abort the

mania
Tera Contributor

Hi,

 

1.When agent opens the incident, time should not start automatically.- I have did this glide.ui.timer.started is false then it is stopped running automatically.

2.when anyone should be able to manually start the timer and the timer starts. If the user/agent is updating the ticket, and the time worked is 00:00:00, add a info message (Please fill the time worked before updating the ticket) and abort the action. - I have tried BR rule but that is not triggering to Incident form.

Can anyone help on this code. It will be helpful.

mania_3-1706782114812.png

 

mania_0-1706781957401.png

mania_2-1706781990367.png

Thanks in Advance!

 

1 ACCEPTED SOLUTION

Sonam_Tiwari
Kilo Sage

@mania ,

 

Remove the 3rd and 6th line. Anyway you have checked that in the condition section.

Consider indicating the response as helpful and marking it as correct if it meets your needs.

View solution in original post

14 REPLIES 14

Sonam_Tiwari
Kilo Sage

Hi @mania ,

 

Haven't heard of gs.setActionCancelled ever. Can you instead try replacing with

 

 

current.setAbortAction(true);

 

 

 

Consider indicating the response as helpful and marking it as correct if it meets your needs.

@Sonam_Tiwari 

Thankyou for your responding!

 

I have tried but not showing that error message on the form, otherwise can you please proved code for that it will be helpful.

 

Thanks!

Mania

Sonam_Tiwari
Kilo Sage

@mania ,

 

Remove the 3rd and 6th line. Anyway you have checked that in the condition section.

Consider indicating the response as helpful and marking it as correct if it meets your needs.

@Sonam_Tiwari 

Thanks for your responding!

 

Its working now, but I have an issue here once i start the timer and update the record It is showing two records under the Time worked tab with the same time and also created duplicate records also.

Can you please help on how to solve this issue. It will be helpful.

 

mania_0-1706786448196.png

mania_2-1706786510658.png

mania_4-1706786585322.png

 

Thanks!

Mania