We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Dynamic Filter on Widget Instances

kemmy1
Tera Guru

Is this allowed on an widget instance?

kemmy1_0-1753048550874.png

I tried: multiple_facilitiesLIKE3f483b7b1b0b69907c9e0e1de54bcb7b^ORmultiple_facilitiesLIKE3b483b7b1b0b69907c9e0e1de54bcb7c^OR

And it works when I hard code it.

 

I added this to background scripts: javascript: new x_g_dh5_dfas_ext.dfasAjax().getUserFacilityContains(); and it returns the same query

But it's not working on the filter field of a widget instance table.

1 ACCEPTED SOLUTION

J Siva
Kilo Patron

Hi @kemmy1 

I don't think it's possible to embed javascript code into the filters of the service portal widget instances.

Regards,

Siva 

View solution in original post

1 REPLY 1

J Siva
Kilo Patron

Hi @kemmy1 

I don't think it's possible to embed javascript code into the filters of the service portal widget instances.

Regards,

Siva