UI Action (button) for specific SYS ID

AdamUMC
Tera Guru

Hi,

I have a "sys_template" (Incident template) for which I have made a new button.
It's actually the same button as hidden behind the hamburger- icon ("Insert and Stay").

Now I want this button to be available for only this specific template. I have tried several conditions within the button's UI Action, but nothing seems to work. How can I solve this problem?

I have tried:
- Condition = sys_id=a0a80ee597676110b4fbb1e3f245986f^EQ (does not work)

- Condition= template=[[OB]] -^EQ (does not work)

- Condition = name=[[OB]] - ^EQ (does not work)

Thanks in advance!

1 ACCEPTED SOLUTION

@AdamUMC  
current.getUniqueValue() == 'ur_template_sys_id'.So the Ui Action would only show on that particular template.
If my response helped please mark it correct and close the thread

View solution in original post

26 REPLIES 26

I want to hide the "Save" button at my template. Is that possible as well? The current Condition at the UI Action for the "Save" button is "!current.isNewRecord() && current.canWrite() &&".

you can add this condition.

 

current.getUniqueValue() != 'sys_id of template' ;

 

Mark my solution as Accepted, if you find it helpful.

 

Regards 

Samaksh

Thanks Samaksh,

I have already tried that, but unfortunately it does not work:

!current.isNewRecord() && current.canWrite() &&current.getUniqueValue() !== 'a0a80ee597676110b4fbb1e3f245986f'

Hey AdamUMC,

 

In your script it is mentioned as you used !==current.getUniqueValue() !== 'a0a80ee597676110b4fbb1e3f245986f'

 

instead of that use '!='

 

Mark my solution as Accepted, if you find it helpful.

 

Regards 

Samaksh

I tried this as well, but it does not work. 🙂

current.getUniqueValue() != 'a0a80ee597676110b4fbb1e3f245986f'