I have to add HR Profile table field 'scheduled start date' on Onboarding HR Service.

niveditakumari
Mega Sage

Hi, 

 

I have to add HR Profile table field 'scheduled start date' on Onboarding HR Service and that field should be editable. I have to dot walk in this field to Onboarding case. 

Can you please help me to get it. 

 

Regards, 

Nivedita

1 ACCEPTED SOLUTION

@niveditakumari Sorry for keep you waiting for so long. As discussed here is how you need to configure the ACL on HR Profile table.

Create following ACL on HR Profile Table and employment start date field

Screenshot 2023-05-10 at 11.46.33 PM.png

Here is how you need to configure the script.

Screenshot 2023-05-10 at 11.47.46 PM.png

 

Here is the script.

answer=false;
if(gs.getUser().isMemberOf('HR Tier 1')){ //replace HR Tier1 with your group name
	answer = true;
}

 

Here is how the dot walked field look on the HR Case form once the ACL is in place.

Screenshot 2023-05-10 at 11.53.17 PM.png

Hope this helps.

View solution in original post

35 REPLIES 35

@niveditakumari Is scheduled start date a custom field on the HR Profile or you have simply renamed employment start date?

Hi @Sandeep Rajput

 

My requirement was to make schedule start date field editable only for 'ABC' group. 

I know we can make any field editable to any group with ACL but as this is dot walked field which approach should we use to achieve it. 

 

Regards, 

Nivedita

 

 

You can handle this via a client script, in the client script, check if the logged in user is a member of Group ABC it he/she is a member of the group then set the dot walked field to ReadOnly false else ReadOnly true.

How to get dot walked field value. 

Can you please help me with that. 

 

Regards, 

Nivedita

 

 

 

Hi @Sandeep Rajput

 

Which approach would be good to achieve it. ACL or Client Script. 

I know in ACL we can use gs.getUser().isMemberOf(' ');

to get logged in User and we can return true but schedule start date is dot walked field how we can access this field. 

Can you please help me with code for that. 

 

Regards, 

Nivedita