How to hide New button of Change Tasks on Change Request only for STANDARD CHANGES

BHIM RAO2
Tera Expert

There is a need to hide the New button of Change Tasks on Change Request only for STANDARD CHANGES.

In Emergency and Normal change, the New button should be visible.

Could someone help what script I need to write in Omit New condition please?

find_real_file.png

 

1 ACCEPTED SOLUTION

Script like this, use my instructions above around getting to configure > list control:

var answer = false;
if (parent.type == 'standard') {
    answer = true;
}
answer;

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

13 REPLIES 13

Hi Allen

Done!

And  I have missed adding an updated script that I used.

if (parent.type == 'standard') {
answer = true;
} else {
if (parent.active == true)
{
answer = false;
}
else
{
answer = true;
}
}

BR
Bhim

Hello Bhim Rao,

 

        I have same requirement, it's not working to my instances level. Please help me in this one.

But my requirement is one Approval filed is Approved state and Change request  active is in false condition state i don't want to this new button

 

Thanks,

D Manohar Reddy

Manohararuna_0-1749475190506.png

 

ashwinganesh
Tera Contributor

How to enable scripts in list control? I am not seeing an option to write script.