Copy Incident widget on Service Portal

edhefford
Kilo Expert

Hi All,

We've had an improvement request to see if we can create a "copy incident" widget that would go on the below view page:

find_real_file.png

The main idea is to replicate the "copy incident" function from the incident form but to be able to do this via a portal widget. We have lots of instances where the same people are required to log and relog the same incidents, with only minor changes.

Has anyone implemented this at all?

Thanks,

Ed

1 REPLY 1

Swathi12
Tera Expert

Hi,

Yes, You can create a button in the widget and when you click on copy incident , it should redirect to catalog item from which you had created the existing incident(you can get this from the existing widget code itself) , also pass the values needed to be prefilled in as a parameter.

Also, you have to change the order guide and catalog item widget wherein you have to get the parameters and modify the server script to pass the value to html if there are any parameters.

(For reference fields, you have to get the display value)

 

Hope this helps you, Please mark this helpful/correct if it does.

 

Regards,

Swathi