- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on ‎05-01-2018 09:40 PM
Problem Statement
- How multiple journal fields behave on records like ( Task, Request, Requested Item etc.)
- How to separate work notes & Additional comments (Customer visible) & make visible both at the same time
- 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.
- 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.
- 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 button
- If we just need to hide post button we can write client script as mentioned in below community article, idea is get CSS class name of Post button, by inspect element on browser & use it to hide the button from the UI
- https://community.servicenow.com/community?id=community_question&sys_id=45ab03a1db9cdbc01dcaf3231f96...
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';
}
}
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
if activities, work-notes, comments are in the same form section, then only Post button with switch(b/w comments work-notes will appear).
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
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:
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!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Never mind. I got this to work by clicking on the funnel button
And then selecting the Work Note and Additional Comments field on the list.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
how can i make additional comment mandatory