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

Why not use the newer widget Surveys and Assements [take_assessment]?

 

data.widgetSurvey = $sp.getWidget("take_assessment", {instance_id: '502a2c44d7211100158ba6859e6103a3'});

 

passing_id.png

 

Also make sure you are logged in or impersonating who the survey is assigned to.

@ChrisBurks Nice to see that its working.. 

 

But I am missing something i think. I have assigned the survey to one user, able to see it in surveys list. 

But still the widget is showing the same error, this is my widget.. 

 

 

Body Html

<sp-widget widget="data.widgetSurvey"></sp-widget>

CSS: empty

 

Server script 

 

(function() {
  /* populate the 'data' object */
  /* e.g., data.table = $sp.getValue('table'); */
data.widgetSurvey = $sp.getWidget("take_assessment", {instance_id: 'cf6e97d35d371200964f58e4abb23f18'});
})();
 
Client controller : 
 
api.controller=function() {
  /* widget controller */
  var c = this;
};

 

To view it, are you impersonating as the person it's assigned to? It won't display unless you are the person it's assigned to.

I have tried two different users and assigned them the survey.. is it possible send your xml of the widget. I tried the other sys_id as well 

 

502a2c44d7211100158ba6859e6103a3 - Service Desk Satisfaction Survey

Still getting that issue 

@ChrisBurks Incase you have not seen my reply 🙂 

 

Thank you for all the time you have given