Dictionary Override

Rooma1
Tera Contributor

Hi All,

 

I have a requirement- 'On the incident form, users should only be able to select active locations, however, they should be able to change the filter to all locations if they need to actually select an inactive location.'

 

I have configure the dictionary override on incident table for Location field and added the reference qualifier as 'active=true'; Even though users are able to see the all the locations including the inactive locations as well.

 

Also, they should have an option to change the filter to select the inactive locations if they need. How can we fulfill the requirement?

 

15 REPLIES 15

Hello @Rooma1 

 

Please try below code

 

var gr = new GlideRecord("cmn_location");
gr.addQuery('u_active',true);
gr.query();

 

If my response helped you in any way, please mark helpful/accepted.