How do you Force a Specific Form View from a List View

dmullinax
Mega Guru

Our list view, triggered from application menu "Student Device - Print Records" is using a specific list view.

"Student Device Print View/"
find_real_file.png

When I drill into a record, I want to see the corresponding form layout view.
find_real_file.png

Depending on what the user last used, we get the incorrect view.  User has to click on the hamburger, and switch back to "Student Device Print View."find_real_file.png

Is there a way to force the list view to show a specific view rather than the user's last default view?

11 REPLIES 11

Community Alums
Not applicable

Hi,

Check the below links for your answer:

https://community.servicenow.com/community?id=community_question&sys_id=c573cb25dbd8dbc01dcaf3231f9619f0

https://docs.servicenow.com/bundle/paris-platform-user-interface/page/administer/navigation-and-ui/task/t_CreateAViewRule.html

 

Mark as Correct & Helpful, if applicable.

Thanks,
Sandeep

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

You can define the view and add it as a parameter on the url i guess. Or alternatively a view rule if that is an option(based on any field value).

-Anurag

-Anurag

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

in the left navigation module you can specify the view name using

Arguments

&sysparm_view_forced=true&sysparm_view=viewName

OR

you can also use view rules

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

dmullinax
Mega Guru

A view rule is not going to work for me.  In order for it to work, it has to be based on a condition.

For example, I set this field "SDI" to true.
find_real_file.png

You'll see it is inactive because I've already tried this.

I do not see how I can define a view rule based on what application menu the user clicked on.

So... I that field is true, that form view will always evaluate to true preventing the ability to see the other view.

How does this know what list view you clicked on?

Ankur I tried setting the argument in module "&sysparm_view_forced=true&sysparm_view=student_device_print_view."

This did not work.