RatneshTSN
Giga Guru

Problem Statement

  1. How multiple journal fields behave on records like ( Task, Request, Requested Item etc.)
  2. How to separate work notes & Additional comments (Customer visible) & make visible both at the same time
  3. Hide Post button under work-notes or customer facing notes

Solution

  • Out-of-the-box behavior of multiple journal fields in service-now if put-together with activity in same tab-form; will get clubbed together & you will see options like Post button or show all journal fields.
  • You will see like below, where Notes is separate tab on form, in form-design I had put together work-notes & customer-facing & Activities all together in Notes tab. find_real_file.png

 

  • Now in this, I have taken out work-notes & Additional comments from Notes tab-form & put in default. i.e. Now additional comments, work notes are in same tab-form & activities in different tab-form. Now post button is not visible & both fields [work-notes, additional comments ]are visible at the same time.find_real_file.png

 

 

  • Now if we put one journal field (work-notes) or (additional comments) with activities in Notes tab form, Both fields will be visible & for journal field which is with activity will show Post buttonfind_real_file.png

find_real_file.png

function onLoad() {
	//Type appropriate comment here, and begin script below
	var thePostButton = document.getElementsByClassName('btn btn-default pull-right activity-submit');
		
	for (var i = 0; i < thePostButton.length; i++) {
		thePostButton[i].style.color = 'transparent';
		thePostButton[i].style.background = 'transparent';
		thePostButton[i].style.border = 'none';
		thePostButton[i].style.visibility = 'hidden';
		
		
	}
}

 

 

Comments
sajan0192
Giga Expert
Hi On incident form I have added work notes , comments and activities in notes tab I am unable to see Post button at all. Its just displaying Work Notes and Addition Comments separately.
RatneshTSN
Giga Guru

if activities, work-notes, comments are in the same form section, then only Post button with switch(b/w comments work-notes will appear).

 

Nen
Tera Guru

Hi! I've tried creating Additional Comments, Work note, and Comments and Work Notes on my custom table.

It's showing up like this on the form:

find_real_file.png

I don't know how I can replicate the behavior on the Task table. The one where there's a checkbox and you can switch.

 

Do you have an idea on how to do this? The Post button seems to work on the Work Note only.

 

Thanks!

Nen
Tera Guru

Never mind. I got this to work by clicking on the funnel button

find_real_file.png

find_real_file.png

And then selecting the Work Note and Additional Comments field on the list.

rahulsinghal23
Tera Explorer

how can i make additional comment mandatory

Version history
Last update:
‎05-01-2018 09:40 PM
Updated by: