UI Policy to show form section on condition. Included annotation not showing up on form section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2014 11:49 AM
Hi Everyone,
Working in Eureka Patch 2 (development instance), I've built a UI policy to show a new form section when certain conditions on the Incident form are met. While the form section and all of it's fields show, I've added an annotation at the top of this form section and it's seemingly only visible to me. No ITIL users (so far), nor even another admin.
Since I'm going a little out of my realm in building this, I'll try to explain exactly what I've built.
UI Policy on the Incident table
Conditions
- Business Unit = IS
- Priority = 1
Global = yes
Reverse if false = yes
On Loaad = yes
Inherit = no
If true script:
function onCondition() {
try{
//Show the closure form section
var sections = g_form.getSections();
sections[4].style.display = 'block';
}catch(e){}
g_tabs2Sections.setActive(3);
}
If false script:
function onCondition() {
try{
//Hide the closure form section
var sections = g_form.getSections();
sections[4].style.display = 'none';
}catch(e){}
}
UI Policy Actions
- Field 1 - Mandatory True (rest leave alone)
- Field 2 - Mandatory True (rest leave alone)
- Field 3 - Mandatory True (rest leave alone)
- Field 4 - Mandatory True (rest leave alone)
I thought maybe I needed to add the annotation as Visible = true into the UI Policy Actions, but it's not an option to select.
Thoughts?
Thanks,
Scott
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2017 05:01 AM
Hi,
It is working now after interchanging the codes. But in annotation, instead of 1 blue box, 2 small blue box is showing over another bigger blue box.Can it be able to remove one blue box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2017 03:07 PM
hey did you ever figure out how to get rid of that extra box? THanks!
