How to set logged-In user as default Value in MultipleSelect filter in PlatformAnalytics Dashboard

Ajay37
Tera Contributor

Hello Everyone,

 

I am trying to set currently logged in user as default value in Multiple Select filter placed on the Dashboard. I tried by setting javascript: gs.getUserID() in Default value field, but it is not allowing me to save as it is expected the value to be selected from available referenced values in Default Value field. Can anyone help me on giving inputs to achieve it. Please find the attached screenshots for reference.

 

Ajay37_1-1756796428769.pngAjay37_2-1756796435393.jpeg

 

 

7 REPLIES 7

It seems it won't allow to default the values using code snippet.  Because when you select a date it shows some available data filter option like Last 3 month, last 6 Month, YTD those only can be defaulted.

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!

 

Thanks,
Bhimashankar H

@GlideFatherand @Bhimashankar H Is there any other way that we can achieve it from UI builder, as this dashboard has been placed on workspace homepage.

Bhuvan
Kilo Patron

@Ajay37 

 

Try using technical editor and follow below link for sample,

 

https://developer.servicenow.com/blog.do?p=/post/quebec-ui-builder-lists/

 

https://developer.servicenow.com/dev.do#!/reference/next-experience/utah/shared-components/sn-compon...

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan