- 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
‎06-26-2023 04:27 AM - edited ‎06-26-2023 04:31 AM
Not yet, not really.
I just want to make this button available at the (unfinished) Incident template.
It's the template form before applying it to a (new) Incident. So an Incident has nothing to do with this. 🙂
In the UI Action for the button, I should make a condition to achieve this.
The SYS_ID that's shown here, is the SYS_ID of the (unifinished) template.
So what I want is:
1.) User opens a list view of all available Incident templates.
2.) User picks and opens this (unfinished) template, edits it by filling in several other fields.
3.) Then the users clicks at button "Insert and Stay". By clicking at this button, a new template is created without modifying the template from step 2.
NOTE: The "Insert and Stay" button should only be shown for the step 2 template.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 04:51 AM
Hi @AdamUMC
Please try the below syntax.
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
‎06-26-2023 08:28 AM
Thanks. Do I have to add this (with SYS_ID) in the condition- field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2023 09:45 PM
Hi @AdamUMC
Try with the below :
current.applyTemplate("sys_id")
(or)
Try with Template Name
see that the template name is unique.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2023 10:22 AM
If my response helped please mark it correct and close the thread