Requirement to Hide the Incident Fields by validating a condition

Omkar Jori
Tera Expert

Hi All,
I have a requirement to Hide the Incident fields(from form and list view) from the table itself.

Condition is - Fields from incident ticket like short_description, description should be hidden, which are set to Region = Europe.

It should be a server side script like ACL so it should not a have any delay hiding the fields.

OmkarJori_0-1689930792287.png

Please let me know how I can achieve this requirement. 



1 ACCEPTED SOLUTION

@Omkar Jori add below code in script section. Replace u_region with your region field name.

 

if (current.u_region == 'Europe')
  answer = false;

.If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

View solution in original post

10 REPLIES 10

kunal20
Kilo Guru

Hi Omkar,

 

You can create an onload client script and fetch the region for that user and if it matches Europe then hide the shortDescription and description field.

Hi @kunal20 ,
Thank you for your reply.

I tried using Client Script but it working slow like takes few seconds to hide the field and it is not working for the list view.

tried using ui policy for the same? yes client script will not be executed for the list view, for that you will have to create an ACL separately.

So rather than using 2 modules i.e. UI policy and ACL, I think we can use the only ACL as I have to completely hide the field. But not sure the way.

Still you will have to create two ACL's  as one will act on form and other on list view