copy the incident details to the request

f1507513
Giga Contributor

I need to have UI Action to cancel the incident and to open new request with copy some information from the incident to the request form ex, requested for location ...etc

i wrote this ui action its cancel the request but not copying the requester info to the request form 

 

uiaction script.png

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@f1507513 Add .toString(); in the right hand side expression of each line starting from line number 7 till line number 11. 

 

Here is an example

var requested_for = current.requested_for.toString();

 

apply the similar change to all other lines starting from line 8 till line 12.

 

This should fix your issue.

still the information not copied to the form the requested for is reference variable and the other variable is reading from requested for 

uiaction script.png