- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2015 09:24 AM
Hey everyone,
right now I'm trying to display a message on the Itil service now homepage based on the value of a field value on an incident form. I've done some research and so far haven't come up with much. Would anyone be able to point me in the right direction?
Thanks,
Rob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2015 11:05 AM
Here is a dynamic content block to use as a starting point.
Add the Message content block to the spot on the page you want. I added above the header and this is what it looks like:
And here is the code to copy:
<?xml version="1.0" encoding="utf-8" ?> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> <g:evaluate> var gr = new GlideRecord('incident'); gr.addActiveQuery(); gr.addQuery('priority', '=', '1'); gr.query(); var foundIt = false; if (gr.hasNext()) foundIt = true; </g:evaluate> <j:if test="${foundIt}"> <span class="my-message-class" style="background:red;color:black;">You have a priority 1 Incident</span> </j:if> </j:jelly>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2019 12:48 AM
This does not allow an user to type in the widget.
Example-
I want a widget where any user can type like a sticky note but unlike the fact that sticky notes remain local for a user I want it to shared to all users.