Hide new button in incident_task table if incident state is closed.

raj149
Giga Guru

Hello Experts,

 

 

In incident form under related list there is one tab called incident_task.

Now my requirement is 

If incident state is closed then how to hide "new" button for incident_task tab?

example.

incident state is closed hide "new" button.

incident state is not = closed "new" button need to visible.

 

How to achieve this..?

 

note : this is not for admin role.

 

Best Regards,

Raj.

1 ACCEPTED SOLUTION

I see,

try below:

if(parent.state=='7'){
answer = true;
}else{
answer=false;
}
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

5 REPLIES 5

I see,

try below:

if(parent.state=='7'){
answer = true;
}else{
answer=false;
}
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande