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

If you are using Service portal, the client UI actions wont be visible.

Which widget are you using to display the form? If you want a button that takes you to another page, you would need to modify the widget to add a button in HTML and then a onclick function in client controller.


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

Sanjiv, 

I'm copied the 'Create Request' UI Action as the base.  

 

I tried update the script within the UI Action.  Here's the change I made

 

find_real_file.png

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.

I figured it out.  I added openWindow() onclick and that worked

Glad it worked :). Can you mark this thread closed and mark my response correct if it answered your question.


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