Open the specific record producer when the UI action is clicked

SK41
Giga Guru

Hi,

I have a requirement where i have to take the user to a record producer (name XYZ) when he clicks on the related link "Create Request" in interaction form and set the status to "close" of  the interaction and copy the interaction description to request description.

Below is the script i have written in Create Request, and it is taking to the record producer but it is not copying the short description and status of interaction to close.

onClick: OpenReq()

Script: 

function OpenReq()

{

var url= 'com.glideapp.servicecatalog_cat_item_view.do?v=2323230930380832';

g_navigation.openPopup(url);

current.state='closed_complete';

current.update();

}

 

This UI Action is on interaction form. The state is not copied and how to copy the interaction description to request decription.Kindly, help me in this regard.

Thanks!