How to prevent users from typing comments in closed HR cases in portal?

muktha1
Tera Guru

Hi all,

We want to restrict users from being able to enter comments in "Type your message here " box in portal for closed/ Cancelled HR cases. I found an OOB  write ACL for sn_hr_core_case.comments  to which I added active=true condition. But I find this working only for non roled users  and not for the users who have the roles specified in the write ACL. Can anyone please suggest?

find_real_file.png

6 REPLIES 6

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Generally we lockdown entire case form once case is closed, what you can do for your requirement is , just active true flag to existing ACL and create new write ACL for comments field with condition as 'Active' false and role should be admin or hr admin so that comments will be disabled for end users except for admins and hr admin.

Please hit like and mark my response as correct if that helps

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi Musab,

I will try creating new Write ACL. But my question is, when I add Active=true to the existing ACL , why is it still allowing the users satisfying the script condition to enter comments for closed cases? Both the condition and the script have to be satisfied for the ACL to work , is it not?

 

Thanks

 

There may be chances that other ACLs might bypass hence better write new ACL as well like I mentioned. I have created two ACLs which is locking down entire form, if you want that config I will share with you.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi Musab,

Supposing we want nobody to enter comments in the portal for a closed case, what do we do?

 

Thanks