How to FORCE a UI View in a module

Katie A
Mega Guru

We have a module on Change > Create New.

I would like to FORCE that module to ALWAYS open the create new form with the default view.

I edited the Application Menu and added the name of the view.

However, it does not work! If the user has another view (such as the approval view) open prior to clicking Create New, it stays with the previous view and does NOT force the default view.

I also tried sysparm_view=default

That did not work either.

How to force the view every time the module is open?

Screen Shot 2016-03-10 at 4.02.22 PM.png

22 REPLIES 22

seraias2016
Kilo Expert

I have the same Question!!!


I tried change it in the Incident Management, but always the view is the "self service"




But, If you assign at your module of Change the ITIL Role, this opens with the default view.




I hope this be useful for you.


dave_edgar
Mega Guru

kt617 @Eddy Vazquez Did you ever find a resolution to this?   I have the same question


ah i think i have the answer:



You need to use the &sysparm_view_forced=true parameter in the argument.



The force to the default view you leave the view blank, but obviously if you want a specific view you add it in, i believe without spaces.   Here is what I did for Change Management



change_request.do?sys_id=-1&sysparm_query=active=true&sysparm_view=&sysparm_view_forced=true



Works all day long.



Please mark as Correct/Helpful


fuzum
Kilo Contributor

Hi Dave,


I have the same problem but I don't understand your answer. Can you please show a screenshot of what you actually did. It would be a great help!


Thank you very much in advance!


Fuzum