Omit new button for Related list

Jeremyramirez12
Tera Contributor

I want to omit the 'New' button under the change tasks tab of a change request if the state of the change request is "Review." I am using the code below but it seems to be not working:

Jeremyramirez12_0-1714467529429.png

 

Any ideas or suggestions?

 

 

1 ACCEPTED SOLUTION

Sohail Khilji
Kilo Patron
Kilo Patron

HI @Jeremyramirez12 ,

 

TRY 

 

 

var answer;
if(parent.state == '0') { //pass the state value instead of label text , Pass the value as per your system . in my sys its 0
answer = true;
}else {
answer = false;
}

 

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

5 REPLIES 5

Great to know. However, same were the comments before as well where you need to pass value instead of label.