The CreatorCon Call for Content is officially open! Get started here.

Omit New Condition Script not working

Sachin G K1
Kilo Sage

Hi All,

 

I want to show new button of change task in change request record only when change request is new. I tries omit new button and script but its not working. Its hiding the button in all states of change request

SachinGK1_1-1709572414311.png

 

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Remove the check form 'omit new button' and only use the script (Omit new Condition). 

Because you have checked the omit new button, it doesn't evaluate the script and just hides it completely. 

-Anurag

View solution in original post

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Remove the check form 'omit new button' and only use the script (Omit new Condition). 

Because you have checked the omit new button, it doesn't evaluate the script and just hides it completely. 

-Anurag

Sumanth16
Kilo Patron

Hi @Sachin G K1 ,

 

Please try with below code and unselect omit checkbox:

 

 

 

var answer = false;
if (parent.state == 'new') {
    answer = true;
}
answer;

 

 

 

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

 

Thanks & Regards,

Sumanth Meda