Summary of Item being approved showing under Activities

Floridalife
Giga Expert

When looking at the approval form for a CHANGE the "Summary of Item being approved" field shows under the Activities field as shown in the first picture below, however on the Approval for a Requested Item it shows above (2nd picture below. How can i force the   "Summary of Item being approved" field to show above on the change approval form?

The form layout shows the order in the order i want but the change approval form doesnt respect it? (3rd picture)

Approval Change form

2016-02-26 14_43_42-ServiceNow.png

Approval Requested item form

2016-02-26 14_44_21-ServiceNow.png

2016-02-26 14_48_31-ServiceNow.png

7 REPLIES 7

Btw. The activity field in UI16 is behaving real strange with other fields... Right now I have a case at HI that looks like this:



on approval I have only the comments field visible. No activities (filtered). Now on knowledge I have put the activities (filtered) on the form. When I to this, the comments field on the approval for knowledge articles disappears.....



//göran


Dominik Simunek
Tera Guru

You could modify this behavior by updating / overriding UI macro "approval_summarizer_default". In this UI Macro there is a script at the bottom which moves the whole "summary form" to the bottom. So even if you put it anywhere in the form layout, this script moves it to the bottom.

You need to remove the script so that "summary form" stays where it is based on the Form Layout.

Additionally you will need to do another modification otherwise buttons on Approval form stop working properly. This issue is because of the fact that "summary form" stored in "jvar_my_form" contains also hidden inputs that are then colliding with the Approval form. You need to modify "jvar_my_form" so that it does not contain hidden inputs to make Approval buttons work properly.

However there still might be another issues that I overlooked. I will add it if anything noticed later.

quicksand777
Kilo Contributor

Whilst investigating how to deal with this inconsistency, I found this snippet of text from this problem record:

 

"The code in the UI Macro checks if there is any other active summarizer macro for any other table available, before otherwise using the default one, which shows the form view of the record."

 

When I check our approval summariser Macros, I can see that ServiceNow provides a default Macro (which overrides the form design/layout) but they also provide a requested item Macro (amongst others...highlighted below). This would likely explain why requested item approval summarisers correctly sit above the journal, whereas everything else sits at the bottom of the form:

find_real_file.png

 

So I haven't gotten much further yet, but I plan on:

  • cloning the approval_summarizer_sc_request formatter/Macro
  • rewriting it to handle some of our other tables (I will probably create one formatter per table to keep it clean)

I'm hoping this will then be enough to fix the inconsistencies, as its catching out some of our employees that aren't regular users of ServiceNow (e.g. our Executive who approve different things but dont do much else in SNOW).

 

T