Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Variable only visible on RITM level not on the portal

Shalika
Tera Expert

I have a field Configuration Item which is a reference field. In Configuration Item there is a filed IT Responsible.

I want this IT responsible field to be visible in the RITM level form only, not in the portal view.

I tried to write a onLoad Client script as follows, but it did not work

function onLoad() {
   //Type appropriate comment here, and begin script below
    g_form.setDisplay('cmdb_ci.managed_by',false);
    
   
}

 

3 REPLIES 3

suvro
Mega Sage

This cannot be done via UI policy or client script. You need to configure sys_pop_up view for the configuration item table. Below thread will help you to do that.

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/navigation_and_ui/task/t_CreateAView.html

The link does not opens

Try this

 

https://snprotips.com/blog/2016/1/19/using-syspopup-view-to-customize-flyoutpopup-info-on-reference-fields