UI Policy to show form section on condition. Included annotation not showing up on form section.

scottatah
Giga Expert

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

6 REPLIES 6

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.


hey did you ever figure out how to get rid of that extra box?   THanks!