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
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

use current.name and put name in it, Also Plz Check the Client check box and remove line 1 from script and add cancelRITM() in onclick field.

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

 

Regards,

Samaksh.

can you provide a screen shot of your code / script 

@Joshua Comeau 

try this:

current.getUniqueValue() == 'sys_id'

this did not work it is hiding the ui action button still