How can I have the UI Action redirect to another page

Steve Rondeau
Kilo Expert

I'm trying to set up an incident to allow users to redirect to a specific catalog item based on the category selected.

It seems the URL I try to use is not accepted.  Redirects me to basically a blank page.  

 

Below is the page I'm trying to redirect to

find_real_file.png

 

 

 

This is the script for the UI Action Create Service Requests which is based off of the Create Request UI Action.  Line 6 is the actual page I want to redirect to.  

In addition, would current.description = current.variables.descr work to copy the information entered into the Incident table into this description variable?

find_real_file.png

 

 

 

 

1 ACCEPTED SOLUTION

set the onClick field to openWindow();

 

Remove line 1 to 6 and only keep the function.

Remove the condition just for testing


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

10 REPLIES 10

SanjivMeher
Kilo Patron
Kilo Patron

You should make this UI action Client UI action and use window.open(urlnew) instead


Please mark this response as correct or helpful if it assisted you with your question.

Client UI Action?  

Check the Client check box in the UI action and use client script instead of server script


Please mark this response as correct or helpful if it assisted you with your question.

Scripting is not a strong point for me.  If I check the Client script box as part of the UI Action, it disables the UI Action button.

 

I've tried different ways to use the window.open() without success.  Would I have other options to build?