TamoghnaB
Tera Expert

Hi @Karthik152 ,

 

There must not be anything wrong with View Rule logic and that is why it is working correctly on load.

The issue is it is redirecting to another view whne you click on UI actions. 

In UI Action - you need to create the redirection logic to redirect back to same view.

Please apply the logic in your ui action. Please follow the syntax as belo:

 

// Redirect to the 'MyCustomView' of the current incident record
action.setRedirectURL("incident.do?sys_id=" + current.sys_id + "&sysparm_view=MyCustomView&sysparm_view_forced=true");

 

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

 

Thank you!