Change view when selecting from a dropdown on a form

William Busby
Tera Guru

I have a form in a scoped custom app in which I need to select a value from [cmdb_ci_site] which is in the CMDB CI Class Models application. The default view does not contain the data needed so I created a custom view in my scoped app. Unfortunately, when using the form and selecting the magnifying glass to lookup values in [cmdb_ci_site] there is no method offered to switch to my custom view. I tried going down the path of creating a view rule (within my scoped app) but you can't create a view rule on a table outside of your current scope. Any insight on options?

I'd like to avoid modifying the default view in CMDB CI Class Models for the table [cmdb_ci_site] to avoid having to deploy both applications (mine and CMDB CI Class Models) but if that's the only option I'd like to know.

 

Showing No Option to Select View.png

5 REPLIES 5

Andrew_TND
Mega Sage
Mega Sage

Hi @William Busby 

 

If you’re looking to add the view option this May point you in the right direction.

 

https://www.servicenow.com/community/developer-forum/restrict-ability-for-non-admin-users-to-change-... 

 

Please mark as helpful or if it has resolved the issue, CORRECT!