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

GlideFather
Tera Patron

Hi @Ajay37,

 

on the data sources click the edit option:)

GlideFather_0-1756798985432.png

 

 

and it like this:

GlideFather_1-1756799012932.png

 

Let me know if that helped

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi @GlideFather ,

 

Thank you for your response. I need to just show the logged-in user as default selected value but I further need to allow the user to select the other values from available list. With the solution you have provided, we can only get the current logged-in user record and it won't show any other data.

 

Regards,

Rakesh Gudisa

Bhimashankar H
Mega Sage

Hi @Ajay37 ,  

 

I don't think so you will be able to default by that code snippet.

 

Because I tried here once I save this filter and exist saving mode and go again the it erased the code entered in default value box. It allows you to select only users.

 

BhimashankarH_0-1756802441994.png

 

 

Thanks,
Bhimashankar H

 

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

Hi @Bhimashankar H ,

 

Thank you for your response. I am also seeing the same behaviour.

 

Regards,

Rakesh