Redirect from one view to another view using a UI action

lberthold
Kilo Contributor

Hello,

 

Is it possible to create a UI Action on an Incident form that then redirects to the another form on the same table? For example, our "Default" Incident view is quite cumbersome with lots of fields and functionality. Our idea is to create a simplified view of the incident form (called Phone Express) in another view. Users will use the simplified view to create a new incident...and if it's not an Open/Close incident or requires further investigation, we'd like to click an "Investigate" or "Continue" button from a UI action on the simplified view, that takes the user to the 'Default' view of the incident (with all the fields) so the user can continue working.

 

So far, I can't see anything on the community relating to this. Any thoughts on how to redirect to a specific view on the same table would be appreciated!

Thanks!

Lori

1 ACCEPTED SOLUTION

Hi Lori -



Sorry about that, misunderstood what you were trying to achieve. Try this in the UI Action instead:



current.update();


action.setRedirectURL("incident.do?sys_id=" + current.sys_id + "&sysparm_view=default&sysparm_view_forced=true");



this also works:



current.update();


action.setRedirectURL("incident.do?sys_id=" + current.sys_id + "&sysparm_view=&sysparm_view_forced=true");



but I left default in there just so you know you can modify that section for different views.


View solution in original post

6 REPLIES 6

Awesome! Glad it worked for you!


mangeshs
Kilo Explorer

Hi,



I am very new to Snow, please can you assist me as to how i can redirect users to 2 differernt roles based on roles?



Thnks