- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2023 03:13 AM - edited ‎07-05-2023 07:54 AM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2023 06:06 AM - edited ‎07-04-2023 06:11 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 01:08 AM - edited ‎07-06-2023 01:08 AM
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() &&".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 01:13 AM
you can add this condition.
current.getUniqueValue() != 'sys_id of template' ;
Mark my solution as Accepted, if you find it helpful.
Regards
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 01:20 AM
Thanks Samaksh,
I have already tried that, but unfortunately it does not work:
!current.isNewRecord() && current.canWrite() &¤t.getUniqueValue() !== 'a0a80ee597676110b4fbb1e3f245986f'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 01:31 AM - edited ‎07-06-2023 01:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 01:34 AM
I tried this as well, but it does not work. 🙂
current.getUniqueValue() != 'a0a80ee597676110b4fbb1e3f245986f'