hrsd

Snow-Man
Tera Contributor

Hello everyone, 

I have a requirement i.e when creating a HR case only for one HR service that is "HR accounts request enquiry" if the logged in user is Manager so can submit the HR case for another user (simply opened for should be visible) but if they ain't manager (opened for should be hidden). (on the native view and Workspace view).

 

how can I configure a client script for that?

thanks

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Snow-Man Though I already answered this question a couple of times previously but it seems my response didn't address your question. The native case creation form/workspace case creation forms are specifically meant for the HR Users and except the users with sn_hr_core.basic role, no one else should be allowed to create cases through it.

 

For normal users, record producer should only be the self service option using which they can raise a case, else they can use virtual agent or use an email/phone call to HR department to raise the case.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Snow-Man Though I already answered this question a couple of times previously but it seems my response didn't address your question. The native case creation form/workspace case creation forms are specifically meant for the HR Users and except the users with sn_hr_core.basic role, no one else should be allowed to create cases through it.

 

For normal users, record producer should only be the self service option using which they can raise a case, else they can use virtual agent or use an email/phone call to HR department to raise the case.

Haha you found me, let me explain you a bit more. 

All HR employees can create a case for themselves but only employees with role (

'sn_hr_core.manager') should be able to create a case on behalf of someone else. (On native view and Workspace view) I have already written a client script to configure the portal view. 
 
we have a opened_for field in case creation form, I need to configure it in such a way so that if HR services are only (A, B, C or D) then if HR manager is creating a case, opened for field should be visible, otherwise it should be hidden, 
 
for all other HR services case creation form should be the one that is OOB. 
 
please help