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

Samaksh Wani
Giga Sage
Giga Sage

Hi Joshua,

 

 

current.sys_id == "sys_id" // mention the sys_id of specific catalog,
OR
current.name== "name" // mention the name of specific catalog,

 

 

Write this script in Condition Field.

 

Plz mark my Solution as Accept, If you find it Helpful. 

 

Regards,

Samaksh

when I add it to the condition the cancel button disappears can you let me know what I am missing 

do I need to add it to the script as well or just the condition,

 

I added it just to the condition but still it is missing I remove the condition and it re-appears 

 

Thoughts

Hi Joshua,

 

Plz Check the Client Box, It will populate a OnClick Field where write cancelTRIM()

 

and remove the line 1 from script. 

 

Plz mark my Solution as Accept, If you find it Helpful. 

 

Regards,

Samaksh

 

 

MahaAgineo
Tera Guru

Hello @Joshua Comeau,

write in the condition field the following:

 

current.sys_id == 'the sys_id of that specific item theat you want'

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up. 

best regards