Create a floating widget in employee center portal

Harsha Pappala
Kilo Sage

In Employee center, there is a widget performance indicator which is present in all pages and floats on left hand side, 

is there a possibility to copy this functionality for another custom widget 

 

HarshaPappala_0-1722320061482.png

 

1 ACCEPTED SOLUTION

I don't think that there is a widget to assign the survey. There is a widget that will show that surveys are available that are already assigned for the user.
But it is possible to create the widget that could do that. One way is to replicate what the "Assign Survey" UI action does. Then embed that widget in your Header of the theme applying the position styling so that it appears to float.

 

 

View solution in original post

18 REPLIES 18

You are welcome. I'm glad I can help.

Hopefully this can clear some things up.

Type ID is a universal id of the metric type. It can be used for any user. What it will do is get the earliest instance of that type and pass to the widget.

The "View Survey URL" related link uses this sys_id

type_id.png

 

However, the widget can also take the instance sys_id which is the actual sys_id of the instance for a specific person that is assigned to the survey.

instance_id.png

 

Thus you can use either sys_id. But it has to be passed with the proper object property type_id or instance_id, respectively.

 

And you can see in the following image my setup is just like yours where I'm hard coding the sys_id except using the type_id. (note: the icon doesn't show because i'm not in a portal with the theme)

widget.png

 

Here it is as Joe Employee

joe_emp.png

@ChrisBurks 

 

I have been able to create and assign the survey as well, within the widget

So who ever clicks on the menu item, now gets a survey and it opens for them in widget itself 

 

Type id and instance id, I got the understanding now. 

We made a mess of this question.  But it is very helpful for me 

Thanks again

Oh, I see. This sys_id cf6e97d35d371200964f58e4abb23f18 is the metric type so the type_id and not the instance_id. The UI related link in the Survey instance uses the type id

This sys_id "502a2c44d7211100158ba6859e6103a3" is also a type id.