Cancel button for a specific catalog (how?)

Joshua Comeau
Kilo Sage

Looking to know how to add to my script on making sure this button only appears on a specific catalog 

 

currently have the following and it works but it shows up on all catalogs 

 

JoshuaComeau_0-1688556367355.png

 

3 ACCEPTED SOLUTIONS

@Joshua Comeau 

try it without the function only with current… directly

View solution in original post

Joshua Comeau
Kilo Sage

This is the solution:

JoshuaComeau_0-1688561603446.png

 

View solution in original post

Samaksh Wani
Giga Sage

Can you please mark my solution as Accept, As i helped you to write a condition.

 

Regards,

Samaksh

View solution in original post

30 REPLIES 30

removed spaces still not working but thank you for your feed back 

have you check the client checkbox.

yes have checked and unchecked still no difference 

 

def appears to be the condition that is incorrectly typed as when I remove it the button comes back 

 

but I want to be able to make it unique so that it will only show for this specific catalog 

Please enclose your existing condition in () and then add like below.

 

(current.sys_id=='sys_id')

 

Plz mark my Solution Accept and give thumbs up, if you find it helpful, it will help other users as well.

 

Regards,

Samaksh.

Did not work this is what I have currently:

JoshuaComeau_0-1688559802085.png